Commit 0f7158d6 authored by Magnus Westergaard's avatar Magnus Westergaard
Browse files

DEICH-5615: Display error message if no date is given for deviating opening hours.

parent 5c712f32
......@@ -133,6 +133,10 @@
}
if (branch.deviatingOpeningHours) {
for (let i = 0; i < branch.deviatingOpeningHours.length; i++) {
if (!branch.deviatingOpeningHours[i].periodStart) {
return { error: "Ugyldig input", message: "Dato må være angitt", details: "En avvikende åpningstid mangler dato. Vennligst fyll inn en dato eller periode." }
}
const manned = branch.deviatingOpeningHours[i].manned
if (manned) {
const mannedFrom = branch.deviatingOpeningHours[i].mannedFrom
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment