Skip to content

Commit

Permalink
BUG 10
Browse files Browse the repository at this point in the history
  • Loading branch information
KuznetsovNikita committed Nov 25, 2024
1 parent cc9ab07 commit d3560c8
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { formatAddress, toShortValue } from '@tonkeeper/core/dist/utils/common';
import { Button } from '../../../components/fields/Button';
import { CopyButton } from '../../../components/CopyButton';
import { useTranslation } from '../../../hooks/translation';
import { useActiveTonNetwork } from '../../../state/wallet';

const ContentWrapper = styled.div``;

Expand Down Expand Up @@ -49,7 +50,8 @@ export const SpamNftInfoNotification: FC<{
onClose: (confirmNotSpam?: boolean) => void;
}> = ({ isOpen, onClose, nft }) => {
const { t } = useTranslation();
const address = nft ? toShortValue(formatAddress(nft.address)) : '';
const network = useActiveTonNetwork();
const address = nft ? toShortValue(formatAddress(nft.address, network, true)) : '';
return (
<Notification
title={t('approval_details_token')}
Expand Down Expand Up @@ -78,7 +80,9 @@ export const SpamNftInfoNotification: FC<{
</Body2>
<Body2>{address}</Body2>
</TextBlock>
<CopyButton content={nft ? formatAddress(nft.address) : ''} />
<CopyButton
content={nft ? formatAddress(nft.address, network, true) : ''}
/>
</ListItemPayloadStyled>
</ListItemElement>
</ListBlockStyled>
Expand Down

0 comments on commit d3560c8

Please sign in to comment.