Skip to content

Commit 5fd860a

Browse files
committed
fix: card should not be fully reloaded after TX
The engine will handle pushing updated token data to the card
1 parent f4a5004 commit 5fd860a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

javascript/tokenscript-viewer/src/components/viewers/tlink-card/tlink-card-viewer.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,6 @@ export class TlinkCardViewer {
100100

101101
this.tokenScript = await getTokenScriptWithSingleTokenContext(this.app, chain, contract, scriptId, originId, null, null, tokenId, tokenScriptUrl);
102102

103-
// Reload cards after the token is updated
104-
this.tokenScript.on("TOKENS_UPDATED", (data) => {
105-
this.loadCard(true);
106-
}, "grid");
107-
108103
await this.loadCard();
109104
}
110105

0 commit comments

Comments
 (0)