File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
javascript/tokenscript-viewer/src/components/viewers/new Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,11 @@ export class NewViewer {
60
60
if ( ! this . myTokenScripts [ id ] . tokenScript )
61
61
continue ;
62
62
63
- this . myTokenScripts [ id ] . tokenScript . getAttributes ( ) . invalidate ( [ "walletAddress" ] ) ;
63
+ this . myTokenScripts [ id ] . tokenScript . getAttributes ( ) . invalidate ( [ "walletAddress" , "ownerAddress" ] ) ;
64
+ this . myTokenScripts [ id ] . tokenScript . getCards ( ) . getAllCards ( ) . forEach ( ( card ) => {
65
+ card . getAttributes ( ) . invalidate ( [ "walletAddress" , "ownerAddress" ] ) ;
66
+ } )
67
+
64
68
this . myTokenScripts [ id ] . tokenScript . getTokenMetadata ( true ) ;
65
69
}
66
70
} )
Original file line number Diff line number Diff line change @@ -71,7 +71,6 @@ export class ViewerPopover {
71
71
this . tokenScript = tokenScript ;
72
72
73
73
this . tokenScript . on ( "TOKENS_UPDATED" , async ( data ) => {
74
- this . tokenScript . getAttributes ( ) . invalidate ( [ "walletAddress" ] )
75
74
await this . loadOnboardingCards ( ) ;
76
75
} , "onboarding" ) ;
77
76
You can’t perform that action at this time.
0 commit comments