Commit f212ef0a authored by mdsecurity's avatar mdsecurity
Browse files

fixing isOpen()

parent 714923bb
......@@ -28,7 +28,12 @@ export class Place {
for (let i = 0; i < this.main_schedule_times.length; i++) {
const day = this.main_schedule_times[i];
if (day.start_day === dayOfWeek || day.end_day === dayOfWeek + 1) {
if (day.start_day === dayOfWeek && day.end_day === dayOfWeek) {
if (day.end_time.inSeconds() > inSeconds) {
return true;
}
}
if (day.end_day === dayOfWeek) {
if (day.end_time.inSeconds() > inSeconds) {
return true;
}
......
......@@ -16,7 +16,7 @@
"import-spacing": true,
"indent": [
true,
"spaces"
"tabs"
],
"interface-over-type-literal": true,
"label-position": true,
......
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