hide user wallet balances from other users

This commit is contained in:
keyan 2021-12-30 15:40:33 -06:00
parent 7611e0a3c6
commit 468c054d45
1 changed files with 1 additions and 1 deletions

View File

@ -31,8 +31,8 @@ export default function UserHeader ({ user }) {
const client = useApolloClient()
const [setName] = useMutation(NAME_MUTATION)
const Satistics = () => <h1 className='mb-0'><small className='text-success'>{user.sats} sats \ {user.stacked} stacked</small></h1>
const isMe = me?.name === user.name
const Satistics = () => <h1 className='mb-0'><small className='text-success'>{isMe ? `${user.sats} sats \\ ` : ''}{user.stacked} stacked</small></h1>
const UserSchema = Yup.object({
name: Yup.string()