Skip to content

Commit

Permalink
Change display holiday hour rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonfnasc12 committed Jun 26, 2024
1 parent d2b956a commit 6a6df54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"vendor": "vtex",
"name": "store-locator",
"version": "0.11.2-hkignore.5",
"version": "0.11.2-hkignore.6",
"title": "Store Locator",
"description": "Integrates with the logistics module to provide Store Locator pages",
"builders": {
Expand Down
3 changes: 1 addition & 2 deletions react/StoreHours.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ const StoreHours: FC<WrappedComponentProps & StoreHoursProps> = ({
const close = timeFormat(item.hourEnd, format)
const holiday = new Date(item.date)

holiday.setDate(holiday.getDate() + 1)
const today = new Date()

if (open === '' && close === '') {
Expand All @@ -159,7 +158,7 @@ const StoreHours: FC<WrappedComponentProps & StoreHoursProps> = ({
)
}

if (today > holiday) {
if (today >= holiday) {
return ``
}

Expand Down

0 comments on commit 6a6df54

Please sign in to comment.