Skip to content

Commit

Permalink
fixed: move nft user info
Browse files Browse the repository at this point in the history
  • Loading branch information
zzggo committed Feb 18, 2025
1 parent d44b1a9 commit dddbdef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ui/views/NftEvm/SendNFT/MoveNftConfirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const MoveNftConfirmation = (props: SendNFTConfirmationProps) => {
console.log('MoveNftConfirmation - NftEvm');
const usewallet = useWallet();
const history = useHistory();
const { mainAddress, childAccounts, currentWallet } = useProfiles();
const { mainAddress, childAccounts, parentWallet } = useProfiles();
const [sending, setSending] = useState(false);
const [failed, setFailed] = useState(false);
const [, setErrorMessage] = useState<string | null>(null);
Expand Down Expand Up @@ -155,10 +155,10 @@ const MoveNftConfirmation = (props: SendNFTConfirmationProps) => {
const getChildResp = useCallback(async () => {
const newWallet = {
[mainAddress!]: {
name: currentWallet.name,
description: currentWallet.name,
name: parentWallet.name,
description: parentWallet.name,
thumbnail: {
url: currentWallet.icon,
url: parentWallet.icon,
},
},
};
Expand All @@ -170,7 +170,7 @@ const MoveNftConfirmation = (props: SendNFTConfirmationProps) => {
if (firstWalletAddress) {
setSelectedChildAccount(walletList[firstWalletAddress]);
}
}, [mainAddress, currentWallet, childAccounts]);
}, [mainAddress, parentWallet, childAccounts]);

useEffect(() => {
getChildResp();
Expand Down

0 comments on commit dddbdef

Please sign in to comment.