Skip to content

Commit

Permalink
fix: card should not be fully reloaded after TX
Browse files Browse the repository at this point in the history
The engine will handle pushing updated token data to the card
  • Loading branch information
micwallace committed Oct 25, 2024
1 parent f4a5004 commit 5fd860a
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ export class TlinkCardViewer {

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

// Reload cards after the token is updated
this.tokenScript.on("TOKENS_UPDATED", (data) => {
this.loadCard(true);
}, "grid");

await this.loadCard();
}

Expand Down

0 comments on commit 5fd860a

Please sign in to comment.