From 52058780a48f6bdfbaeb0a432cddacc846dabf63 Mon Sep 17 00:00:00 2001 From: mmilenkovic Date: Tue, 4 May 2021 13:31:29 +0200 Subject: [PATCH] changing Optional Chaining for ternary, since we need to cover an option where amount is NaN (#463) --- src/views/shared/fiat-amount/fiat-amount.view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/shared/fiat-amount/fiat-amount.view.jsx b/src/views/shared/fiat-amount/fiat-amount.view.jsx index 83a35e091..248faaedd 100644 --- a/src/views/shared/fiat-amount/fiat-amount.view.jsx +++ b/src/views/shared/fiat-amount/fiat-amount.view.jsx @@ -9,7 +9,7 @@ function FiatAmount ({ amount, currency }) { return (
- {CurrencySymbol[currency].symbol} {amount?.toFixed(2) || '--'} + {CurrencySymbol[currency].symbol} {amount ? amount.toFixed(2) : '--'}
) }