Currency code is duplicated when an existing currency code is selected in the sorted list
This commit is contained in:
parent
3a081523e8
commit
36daa1cb02
@ -656,12 +656,14 @@ export default {
|
|||||||
|
|
||||||
for (const [key, value] of Object.entries(this.full_options)) {
|
for (const [key, value] of Object.entries(this.full_options)) {
|
||||||
if (selected == value.key) {
|
if (selected == value.key) {
|
||||||
this.sorted_options.push({
|
if(! this.sorted_options.find((option) => option.key == selected)) {
|
||||||
index: value.index,
|
this.sorted_options.push({
|
||||||
key: value.key,
|
index: value.index,
|
||||||
value: value.value,
|
key: value.key,
|
||||||
level: value.level
|
value: value.value,
|
||||||
});
|
level: value.level
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user