From 6947e5ca7551244a1bb9a7da98f69d7fe23a26e8 Mon Sep 17 00:00:00 2001 From: Jaroslav Drzik Date: Sun, 24 Mar 2024 13:53:27 +0100 Subject: [PATCH] Fix bug on select currency --- resources/js/Layouts/GuestLayout.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/js/Layouts/GuestLayout.vue b/resources/js/Layouts/GuestLayout.vue index 8f1d8e4..0fb90e6 100644 --- a/resources/js/Layouts/GuestLayout.vue +++ b/resources/js/Layouts/GuestLayout.vue @@ -34,6 +34,11 @@ let tsettings = computed(() => { let country = "GB"; console.log('AAAAA',settingsStore.country); if (settingsStore.country != "") country = settingsStore.country.code; + + if (settingsStore.currency != "EUR") + settingsStore.currencyCoef = currencyHash.value[settingsStore.currency]; + else settingsStore.currencyCoef = 1.0; + return `${country} / ${settingsStore.currency}`; });