Skip to content

Commit

Permalink
edited minor errors
Browse files Browse the repository at this point in the history
  • Loading branch information
summerthia committed Jun 29, 2022
1 parent f6d69cf commit df15ba9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/pages/profile_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ class _ProfilePageState extends State<ProfilePage> {
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),
Expand Down Expand Up @@ -126,7 +125,7 @@ class _ProfilePageState extends State<ProfilePage> {
style: kBodyTextSmall.copyWith(fontWeight: FontWeight.bold),
),
Text(
numShareCreds,
numShareCreds.toString(),
style: kBodyTextSmall,
),
],
Expand Down

0 comments on commit df15ba9

Please sign in to comment.