From b7bc82aa3c1da227bf4c19cb137febc27233cbbb Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 29 May 2024 12:12:50 +0200 Subject: [PATCH] feat: use new filter --- src/pages/Zone/Card/ZoneEventsPanel.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/pages/Zone/Card/ZoneEventsPanel.vue b/src/pages/Zone/Card/ZoneEventsPanel.vue index 10f59eee5..7e286f4fe 100644 --- a/src/pages/Zone/Card/ZoneEventsPanel.vue +++ b/src/pages/Zone/Card/ZoneEventsPanel.vue @@ -6,7 +6,7 @@ import { useRoute } from 'vue-router'; import { useArrayData } from 'src/composables/useArrayData'; import axios from 'axios'; import { toDateFormat, toTimeFormat } from 'src/filters/date.js'; -import { toCurrency } from 'filters/index'; +import { dashOrCurrency, toCurrency } from 'filters/index'; import { dashIfEmpty } from 'src/filters'; import { useWeekdayStore } from 'src/stores/useWeekdayStore'; import { useVnConfirm } from 'composables/useVnConfirm'; @@ -163,11 +163,15 @@ onMounted(async () => { {{ t('eventsPanel.price') }}: - {{ toCurrency(event.price) }} + + {{ dashOrCurrency(event.price)() }} {{ t('eventsPanel.bonus') }}: - {{ toCurrency(event.bonus) }} + + {{ dashOrCurrency(event.bonus)() }} {{ t('eventsPanel.m3Max') }}: