From df15ba94899c769c2ff9e4675ef9a1019b0f59bf Mon Sep 17 00:00:00 2001 From: summerthia Date: Thu, 30 Jun 2022 00:50:39 +0800 Subject: [PATCH] edited minor errors --- lib/pages/profile_page.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/pages/profile_page.dart b/lib/pages/profile_page.dart index aa0faca..ccee908 100644 --- a/lib/pages/profile_page.dart +++ b/lib/pages/profile_page.dart @@ -82,9 +82,8 @@ class _ProfilePageState extends State { buildName(userData), const SizedBox(height: 12), numReviews(userData.reviews.length), - numShareCredits(userData.shareCredits.isEmpty - ? "0" - : userData.shareCredits), + numShareCredits( + userData.shareCredits.isEmpty ? "0" : userData.shareCredits), editProfileButton(), const SizedBox(height: 24), buildAbout(userData), @@ -126,7 +125,7 @@ class _ProfilePageState extends State { style: kBodyTextSmall.copyWith(fontWeight: FontWeight.bold), ), Text( - numShareCreds, + numShareCreds.toString(), style: kBodyTextSmall, ), ],