File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
javascript/tokenscript-viewer/src/components/common/tokens-grid Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -146,19 +146,26 @@ export class TokensGrid {
146
146
}
147
147
148
148
if ( cardRes . card . type === "onboarding" ) {
149
+ const reason = await cardRes . card . isEnabledOrReason ( ) ;
149
150
if (
150
- await cardRes . card . isEnabledOrReason ( ) === true
151
+ reason === true
151
152
) {
152
153
this . urlActionInvoked = true ;
153
154
setTimeout ( ( ) => this . showCard ( cardRes . card ) , 100 ) ;
154
155
return ;
155
156
}
157
+ this . showToast . emit ( {
158
+ type : 'error' ,
159
+ title : "The card is not available" ,
160
+ description : "The provided card is not available" + ( reason !== false ? ": " + reason : '' )
161
+ } ) ;
162
+ return ;
156
163
}
157
164
158
165
if ( ! this . currentTokensFlat . length )
159
166
return ;
160
167
161
- for ( let token of this . currentTokensFlat ) {
168
+ for ( let token of [ ... this . currentTokensFlat , ... this . notOwnedTokens ] ) {
162
169
163
170
const tokenId = ( "tokenId" in token ) ? token . tokenId : undefined ;
164
171
You can’t perform that action at this time.
0 commit comments