Skip to content

Commit

Permalink
fix: utm source null issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadh committed Feb 7, 2023
1 parent 8f9e652 commit bb2bc13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/scripts/cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const toISOFormat = (date) => {

const shouldOverwrite = (new_utm_data, current_utm_data) => {
// If we don't have old utm data, the utm_source field is enough for new utm data
if (!current_utm_data && new_utm_data.utm_source !== undefined) {
if (!current_utm_data && new_utm_data.utm_source !== "null") {
return true;
}

Expand Down

0 comments on commit bb2bc13

Please sign in to comment.