diff --git a/js/src/utils/functions/common.tsx b/js/src/utils/functions/common.tsx index 4786646..55d2040 100644 --- a/js/src/utils/functions/common.tsx +++ b/js/src/utils/functions/common.tsx @@ -44,7 +44,7 @@ export const getCurrencyString = ({ price: number | string | undefined symbol?: string }) => { - if (typeof price === 'undefined' || price === null) return '' + if (!price && price !== 0 && price !== '0') return '' if (typeof price === 'string') return `${symbol} ${price}` return `${symbol} ${price.toString()}` }