clean code: merge option.text into option definition

This commit is contained in:
tchbla 2023-12-18 12:00:57 +01:00
parent 3ba9a955b6
commit bbf5b70b77
No known key found for this signature in database

View File

@ -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)
}