Skip to content

Commit a5bbe2b

Browse files
committed
fix: hide total sent and received if 0
1 parent abb5199 commit a5bbe2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Profile/components/PublicProfile.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ const PublicProfile: React.FC<PublicProfileProps> = ({
3232
}) => {
3333
const dispatch = useAppDispatch()
3434
const [fullName, setFullName] = useState<string>(username)
35-
const [totalSent, setTotalSent] = useState<string>('0')
36-
const [totalReceived, setTotalReceived] = useState<string>('0')
35+
const [totalSent, setTotalSent] = useState<string>('0.00')
36+
const [totalReceived, setTotalReceived] = useState<string>('0.00')
3737
const { user } = useAuth()
3838
const router = useRouter()
3939

@@ -100,7 +100,7 @@ const PublicProfile: React.FC<PublicProfileProps> = ({
100100
</Link>
101101
</div>
102102

103-
{!!user && (
103+
{totalSent !== '0.00' && totalReceived !== '0.00' && (
104104
<div className="space-y-6">
105105
<div>
106106
<Card position="first">

0 commit comments

Comments
 (0)