Skip to content

Commit

Permalink
moved logic to parse token data outside of return
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Taras authored and Nick Taras committed Nov 27, 2023
1 parent f25802f commit 38b56db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/engine-js/src/view/TokenViewData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class TokenViewData {

const walletAdapter = await this.tokenScript.getEngine().getWalletAdapter();

const currentTokenInstance = JSON.parse(`${JSON.stringify(tokenData).replace("^\\'", "\\'").replace(/[\u0000-\u001F]/g, "")}`);
const currentTokenInstance = JSON.parse(`${JSON.stringify(tokenData).replace("^\\'", "\\'")}`);

return `
Expand Down

0 comments on commit 38b56db

Please sign in to comment.