diff --git a/src/components/Profile/components/PublicProfile.tsx b/src/components/Profile/components/PublicProfile.tsx index e9a07cad3..8241e8f5e 100644 --- a/src/components/Profile/components/PublicProfile.tsx +++ b/src/components/Profile/components/PublicProfile.tsx @@ -13,9 +13,7 @@ import ProfileHeader from './ProfileHeader' import { useState, useEffect } from 'react' import { usersApi } from '@/services/users' import { useRouter } from 'next/navigation' -import { formatExtendedNumber } from '@/utils' import Card from '@/components/Global/Card' -import { useAuth } from '@/context/authContext' import chillPeanutAnim from '@/animations/GIF_ALPHA_BACKGORUND/512X512_ALPHA_GIF_konradurban_01.gif' interface PublicProfileProps { @@ -33,9 +31,6 @@ const PublicProfile: React.FC = ({ }) => { const dispatch = useAppDispatch() const [fullName, setFullName] = useState(username) - const [totalSent, setTotalSent] = useState('0.00') - const [totalReceived, setTotalReceived] = useState('0.00') - const { user } = useAuth() const router = useRouter() // Handle send button click @@ -50,8 +45,6 @@ const PublicProfile: React.FC = ({ useEffect(() => { usersApi.getByUsername(username).then((user) => { if (user?.fullName) setFullName(user.fullName) - setTotalSent(user.totalUsdSent) - setTotalReceived(user.totalUsdReceived) }) }, [username]) @@ -107,24 +100,6 @@ const PublicProfile: React.FC = ({ - {!!user && totalSent !== '0.00' && totalReceived !== '0.00' && ( -
-
- -
- Total sent to - ${formatExtendedNumber(totalSent)} -
-
- -
- Total received from - ${formatExtendedNumber(totalReceived)} -
-
-
-
- )} {/* Show create account box to guest users */} {!isLoggedIn && (