Skip to content

Commit 2eb87e1

Browse files
author
Christian Vierthaler
committed
feat(ZMSKVR-1084): use of constant for locationvariants
1 parent 17b398b commit 2eb87e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

zmscitizenview/src/components/Appointment/ServiceFinder.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
:value="variant.variantId.toString()"
6969
:label="t(`appointmentTypes.${variant.variantId}`)"
7070
:hint="
71-
[1, 2, 3].includes(variant.variantId)
71+
VARIANTS_WITH_LOCATION_HINTS.includes(variant.variantId)
7272
? t(`locationVariantText.${variant.variantId}`)
7373
: undefined
7474
"
@@ -206,6 +206,8 @@ import {
206206
207207
const isCaptchaValid = ref<boolean>(false);
208208
209+
const VARIANTS_WITH_LOCATION_HINTS = [1, 2, 3] as const;
210+
209211
const props = defineProps<{
210212
globalState: GlobalState;
211213
preselectedServiceId: string | undefined;

0 commit comments

Comments
 (0)