Fix: add spaces to opening hours picker for PH

This commit is contained in:
Pieter Vander Vennet 2024-10-10 20:16:13 +02:00
parent f2b681caa5
commit 8a8b2e20ae

View file

@ -93,10 +93,10 @@ export default class OpeningHoursState {
let str = OH.ToString(rules) + ";"
const ph = this.phSelectorValue.data
if (ph) {
str += ph + ";"
str += " " + ph + ";" // There must be a space after every ";"
}
str += this.leftoverRules.data.join(";") + ";"
str += this.leftoverRules.data.join("; ") + ";"
str = str.trim()
while (str.endsWith(";")) {