File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
web/src/features/charts/tooltips Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,9 @@ export default function PriceChartTooltip({ zoneDetail }: InnerAreaGraphTooltipP
1919 priceObject ?. value ,
2020 priceObject ?. currency
2121 ) ;
22- const currencySymbol = getSymbolFromCurrency ( currency ) ?? '?' ;
2322 const price = Number . isFinite ( value ) ? value : '?' ;
23+ const currencySymbol = getSymbolFromCurrency ( currency ) ?? '?' ;
24+ const currencySymbolToDisplay = price === '?' ? '' : currencySymbol ;
2425
2526 return (
2627 < div className = "w-full rounded-md bg-white p-3 shadow-xl dark:border dark:border-neutral-700 dark:bg-neutral-800 sm:w-64" >
@@ -32,7 +33,7 @@ export default function PriceChartTooltip({ zoneDetail }: InnerAreaGraphTooltipP
3233 />
3334 < p className = "flex justify-center text-base" >
3435 < b className = "mr-1" > { price } </ b >
35- { currencySymbol } / { unit }
36+ { currencySymbolToDisplay } / { unit }
3637 </ p >
3738 </ div >
3839 ) ;
You can’t perform that action at this time.
0 commit comments