From 2d806896d4f3c08eba9bdd72bde3ee519c6e0621 Mon Sep 17 00:00:00 2001 From: manel Date: Thu, 30 May 2024 15:11:11 +0200 Subject: [PATCH] Showing eur and usd format --- resources/js/Pages/Dashboard.vue | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/resources/js/Pages/Dashboard.vue b/resources/js/Pages/Dashboard.vue index 919159e..b904e2c 100644 --- a/resources/js/Pages/Dashboard.vue +++ b/resources/js/Pages/Dashboard.vue @@ -7,20 +7,20 @@ :dates="prices.dates" :data="prices.eth" :total="currencyFormat(ethPrice)" - :subtotal="currencyFormat(ethPrice * eurPrice)" + :subtotal="currencyFormat(ethPrice * eurPrice, 'EUR')" /> @@ -30,21 +30,21 @@ :dates="totals.dates" :data="totals.totals" :total="currencyFormat(total)" - :subtotal="currencyFormat(total * eurPrice)" + :subtotal="currencyFormat(total * eurPrice, 'EUR')" /> @@ -117,7 +117,7 @@ {{ token.balance.toFixed(3) }} - {{ currencyFormat(token.price * eurPrice) }} + {{ currencyFormat(token.price * eurPrice, 'EUR') }} {{ currencyFormat(token.price) }} @@ -129,13 +129,13 @@ }">{{ getDailyChange(index, token.price) }}% - {{ currencyFormat((token.price * eurPrice * token.balance)) }} + {{ currencyFormat(token.price * eurPrice * token.balance, 'EUR') }} {{ currencyFormat(token.price * token.balance) }} - {{ (token.price * token.balance / ethPrice).toFixed(2) }} + {{ (token.price * token.balance / ethPrice).toFixed(3) }}