Update data structure in WALLET_ACCOUNTS_DATA iframe message
All checks were successful
Lint / lint (20.x) (pull_request) Successful in 1m24s

This commit is contained in:
Nabarun 2025-03-25 15:03:19 +05:30
parent 05dd75a38c
commit e38c3f7114
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ const ApproveTransactionModal = ({
return; return;
} }
setAccount(event.data.data[0].address); setAccount(event.data.data[0]);
} }
if (event.data.type === 'ERROR') { if (event.data.type === 'ERROR') {

View File

@ -92,7 +92,7 @@ const AutoSignInIFrameModal = () => {
if (event.origin !== VITE_WALLET_IFRAME_URL) return; if (event.origin !== VITE_WALLET_IFRAME_URL) return;
if (event.data.type === 'WALLET_ACCOUNTS_DATA') { if (event.data.type === 'WALLET_ACCOUNTS_DATA') {
setAccountAddress(event.data.data[0].address); setAccountAddress(event.data.data[0]);
} }
}; };