Refactoring: port unit picker

This commit is contained in:
Pieter Vander Vennet 2023-06-11 01:32:30 +02:00
parent 622df2df19
commit 2b05d79dbb
8 changed files with 188 additions and 67 deletions

View file

@ -199,7 +199,7 @@ export class Unit {
) {
continue
}
let countries: string | string[] = country()
let countries: string | string[] = country() ?? []
if (typeof countries === "string") {
countries = countries.split(",")
}