File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -159,9 +159,7 @@ <h2>Chain history for <code id="chain-id" class="hex">requesting a new microchai
159159 const response = JSON . parse ( await application . query ( gql ( `query { tickerSymbol, accounts { entries { key value } } }` ) ) ) ;
160160 console . debug ( 'application response:' , response ) ;
161161 document . querySelector ( '#ticker-symbol' ) . textContent = response . data . tickerSymbol ;
162-
163- if ( response ?. data ?. accounts ?. entries ?. [ 0 ] )
164- document . querySelector ( '#balance' ) . textContent = ( + response . data . accounts . entries [ 0 ] . value ) . toFixed ( 2 ) ;
162+ document . querySelector ( '#balance' ) . textContent = ( + ( response ?. data ?. accounts ?. entries ?. [ 0 ] || 0 ) ) . toFixed ( 2 ) ;
165163 }
166164
167165 async function transfer ( application , donor , amount , recipient ) {
You can’t perform that action at this time.
0 commit comments