File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/demo/frontend/src/components Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1259,10 +1259,10 @@ Tx: ${result.transaction.blockExplorerUrl}/${result.transaction.hash || 'pen
12591259 // Check if selected wallet has USDC balance before proceeding
12601260 try {
12611261 const balanceResult = await verbsApi . getWalletBalance ( selectedWallet . id )
1262- const usdcToken = balanceResult . balance . find (
1263- ( token ) => token . symbol === 'USDC' ,
1262+ const usdcTokens = balanceResult . balance . filter (
1263+ ( token ) => token . symbol === 'USDC' || token . symbol === 'USDC_DEMO' ,
12641264 )
1265- const usdcBalance = usdcToken ? parseFloat ( usdcToken . totalBalance ) : 0
1265+ const usdcBalance = usdcTokens . reduce ( ( acc , token ) => acc + parseFloat ( token . totalBalance ) , 0 )
12661266
12671267 if ( usdcBalance <= 0 ) {
12681268 const noBalanceLine : TerminalLine = {
You can’t perform that action at this time.
0 commit comments