π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
π Fix hardcoded usd currency
Ruben Silvae3c7dc0f5d5a
diff --git a/src/components/Widgets/CryptoWatchList.vue b/src/components/Widgets/CryptoWatchList.vueindex 7b86ad25..4230fc71 100644--- a/src/components/Widgets/CryptoWatchList.vue+++ b/src/components/Widgets/CryptoWatchList.vue@@ -9,7 +9,7 @@><img class="icon" :src="asset.image" :alt="`${asset} icon`" /><p class="name">{{ asset.name }}</p>- <p class="price">{{ asset.price | formatPrice }}</p>+ <p class="price">{{ asset.price | formatPrice(currency) }}</p><p :class="`percent ${asset.percentChange > 0 ? 'up' : 'down'}`">{{ asset.percentChange | formatPercentage }}</p>@@ -70,8 +70,9 @@ export default {},filters: {/* Append currency symbol to price */- formatPrice(price) {- return `${findCurrencySymbol('usd')}${putCommasInBigNum(roundPrice(price))}`;+ formatPrice(price, currency) {+ if (currency === undefined) return '';+ return `${findCurrencySymbol(currency)}${putCommasInBigNum(roundPrice(price))}`;},/* Append percentage symbol, and up/ down arrow */formatPercentage(change) {