This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Description
Before we start...:
Branch/Commit:
main branch.
Expected behavior:
A Noko user should not get an email notification if it is a local holiday in their current country.
Actual behavior:
A Noko user will get an email notification if it is a local holiday in their current country.
Steps to reproduce:
- Step 1: Wait for a holiday in your country
- Step 2: Don't log any time
- Step 3: Get an email notification
Context and environment:
The root cause is pretty straightforward:
|
def self.holiday? |
|
ENV["COUNTRY_CODE"] && Holidays.on(Date.today, ENV["COUNTRY_CODE"]).any? |
|
end |
I will abide by the code of conduct