From 67fa543716cea4e58120e2d3643a18d3d31c35f6 Mon Sep 17 00:00:00 2001 From: anthony Date: Mon, 14 Feb 2022 09:29:11 +0100 Subject: [PATCH] Fix invalid error handlement --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f5f099e..5b78c38 100644 --- a/index.js +++ b/index.js @@ -38,7 +38,7 @@ const DAYS_OFF_API_ENDPOINT = "https://date.nager.at" async function fetchDaysOffPerCountry(country) { - if (country) { + if (!country) { return null; }