fix: timing
This commit is contained in:
@@ -148,12 +148,15 @@
|
||||
} else {
|
||||
const opensFor = timeUntilClosing(timing.opens_at, timing.closes_at, time);
|
||||
if (opensFor) {
|
||||
return { isOpen: true, message: `Open now for: ${minsToReadableHours}` };
|
||||
return {
|
||||
isOpen: true,
|
||||
message: `Open now for: ${minsToReadableHours(timeToMins(time))}`
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return { isOpen: false, message: "Closed today" };
|
||||
return { isOpen: false, message: "Closed right now" };
|
||||
}
|
||||
|
||||
function timeUntilClosing(openingTime: string, closingTime: string, currentTime: string) {
|
||||
|
||||
Reference in New Issue
Block a user