From 8d8bca0c140b069bccd5f4caa2306413f8498579 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Fri, 27 Sep 2024 01:49:12 +0600 Subject: [PATCH] fix: update UI --- .../AccountStreak/AccountStreak.tsx | 8 ------ .../AccountStreak/InviteFriends.tsx | 27 ++++++++++++------- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/src/components/AccountStreak/AccountStreak.tsx b/src/components/AccountStreak/AccountStreak.tsx index 9ffd87bc9..306d660ec 100644 --- a/src/components/AccountStreak/AccountStreak.tsx +++ b/src/components/AccountStreak/AccountStreak.tsx @@ -177,14 +177,6 @@ export function AccountStreak(props: AccountStreakProps) {

Visit every day to keep your streak going!

-

- - See how you compare to others - -

- 🥳 You have invited{' '} - - {refByUserCount} users so far - + {refByUserCount > 0 && ( + <> + 🥳 You have invited{' '} + + {refByUserCount} user{refByUserCount > 1 ? 's' : ''} so far + + + )} + {refByUserCount === 0 && <>🤔 You haven't invited anyone yet}

- - See how you are compare to others - +

+ + See how you compare to others + +

); }