From 89691a9b05a9e8e07d6dd05ed27ea43d8f7cc99e Mon Sep 17 00:00:00 2001 From: Sean Ho Date: Thu, 15 Apr 2021 16:15:02 +0800 Subject: [PATCH] refactor: script --- scripts/cookie.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cookie.js b/scripts/cookie.js index a61b94dea105f..451668bc249e9 100644 --- a/scripts/cookie.js +++ b/scripts/cookie.js @@ -105,7 +105,7 @@ function toISOFormat(date) { } else { // If the user comes to the site for the first time without any URL params // Only set the utm_data to deriv_direct if the user does not have utm_data cookies stored - if (getCookie("utm_data") == undefined) { + if (!getCookie("utm_data")) { const utm_source = "deriv_direct"; utm_data = {