Skip to content

Commit

Permalink
fix: wallet integration code
Browse files Browse the repository at this point in the history
  • Loading branch information
micwallace committed Jul 4, 2024
1 parent 266a92b commit 434d250
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pages/advance/integrate-wallet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ export const useIframePostMessage = (
) {
const data = messageData

if (response) {
data.result = response
} else {
data.error = error
}
if (error) {
data.error = error
} else {
data.result = response
}

iframeRef.current?.contentWindow?.postMessage(data, targetOrigin)
}
Expand Down

0 comments on commit 434d250

Please sign in to comment.