From cd1c271b09169827e9d144efc2a3b8130190936b Mon Sep 17 00:00:00 2001 From: Michael Wallace Date: Thu, 9 Nov 2023 13:48:59 +1100 Subject: [PATCH] fix: loader display for joyID & STS viewers --- .../src/components/viewers/joyid-token/token-viewer.tsx | 2 +- .../src/components/viewers/sts-token/sts-viewer.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/tokenscript-viewer/src/components/viewers/joyid-token/token-viewer.tsx b/javascript/tokenscript-viewer/src/components/viewers/joyid-token/token-viewer.tsx index 86043a66..02fc6ad1 100644 --- a/javascript/tokenscript-viewer/src/components/viewers/joyid-token/token-viewer.tsx +++ b/javascript/tokenscript-viewer/src/components/viewers/joyid-token/token-viewer.tsx @@ -50,7 +50,7 @@ export class TokenViewer { bubbles: true, }) hideLoader: EventEmitter; - async componentWillLoad(){ + async componentDidLoad(){ try { const query = new URLSearchParams(document.location.search.substring(1)); diff --git a/javascript/tokenscript-viewer/src/components/viewers/sts-token/sts-viewer.tsx b/javascript/tokenscript-viewer/src/components/viewers/sts-token/sts-viewer.tsx index 3af64153..6c18dbfe 100644 --- a/javascript/tokenscript-viewer/src/components/viewers/sts-token/sts-viewer.tsx +++ b/javascript/tokenscript-viewer/src/components/viewers/sts-token/sts-viewer.tsx @@ -54,7 +54,7 @@ export class SmartTokenStoreViewer { bubbles: true, }) hideLoader: EventEmitter; - async componentWillLoad(){ + async componentDidLoad(){ try { const query = new URLSearchParams(document.location.search.substring(1));