diff --git a/frontend/src/routes/user/cryptoAssetTile.svelte b/frontend/src/routes/user/cryptoAssetTile.svelte index b63568e..11617d6 100644 --- a/frontend/src/routes/user/cryptoAssetTile.svelte +++ b/frontend/src/routes/user/cryptoAssetTile.svelte @@ -29,15 +29,17 @@ Entry Price - {@html formatCurrency(averageUnitPrice)} + {@html averageUnitPrice !== 0 ? formatCurrency(averageUnitPrice) : '-'} Current Price - {@html formatCurrency(currentPrice)} + {@html currentPrice !== 0 ? formatCurrency(currentPrice) : '-'} Profit - {@html formatCurrency(profit)}
({profitRate}%) + {@html profit !== 0 ? formatCurrency(profit) : '-'}
+ {profitRate !== 0 ? '(' + profitRate.toString() + '%)' : ''} +