Skip to content

Commit

Permalink
Merge pull request #58 from vechain/fix/vns-display
Browse files Browse the repository at this point in the history
Fix: Truncate domain on Account
  • Loading branch information
Agilulfo1820 authored Jan 31, 2025
2 parents d79e0b2 + 0b5c647 commit 3bf66f1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';

import { Text, Icon, HStack, Button, Image } from '@chakra-ui/react';
import { humanAddress } from '../../../utils';
import { humanAddress, humanDomain } from '../../../utils';
import { Wallet } from '@/types';
import { MdOutlineNavigateNext } from 'react-icons/md';

Expand Down Expand Up @@ -38,7 +38,7 @@ export const AccountSelector = ({
rounded="full"
/>
<Text fontSize={size} fontWeight="500">
{wallet?.domain ||
{humanDomain(wallet?.domain ?? '', 11, 4) ||
humanAddress(wallet?.address ?? '', 6, 4)}
</Text>

Expand Down

0 comments on commit 3bf66f1

Please sign in to comment.