Skip to content

Commit f424167

Browse files
committed
fix: oisy-signer-demo zero balance display
1 parent 5d2ded2 commit f424167

File tree

1 file changed

+2
-2
lines changed
  • hosting/oisy-signer-demo/frontend/src

1 file changed

+2
-2
lines changed

hosting/oisy-signer-demo/frontend/src/App.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export default function App() {
208208
</div>
209209
<div className="text-sm">
210210
Balance:{' '}
211-
{testIcpBalance && testIcpMetadata
211+
{testIcpBalance != null && testIcpMetadata
212212
? toMainUnit(testIcpBalance, testIcpMetadata.decimals)
213213
: '...'}
214214
</div>
@@ -236,7 +236,7 @@ export default function App() {
236236
</div>
237237
<div className="text-sm">
238238
Balance:{' '}
239-
{tIcrc1Balance && tIcrc1Metadata
239+
{tIcrc1Balance != null && tIcrc1Metadata
240240
? toMainUnit(tIcrc1Balance, tIcrc1Metadata.decimals)
241241
: '...'}
242242
</div>

0 commit comments

Comments
 (0)