From bbf5b70b770aabde1dda7edc46c95dd67074cf2f Mon Sep 17 00:00:00 2001 From: tchbla Date: Mon, 18 Dec 2023 12:00:57 +0100 Subject: [PATCH] clean code: merge option.text into option definition --- src/components/create.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/create.vue b/src/components/create.vue index 2d92d72..28ae89e 100644 --- a/src/components/create.vue +++ b/src/components/create.vue @@ -171,8 +171,10 @@ export default { continue } - const option = { value: choice } - option.text = this.getExpiryLabel(choice) + const option = { + value: choice, + text: this.getExpiryLabel(choice) + } choices.push(option) }