From 112469ca3230970303c0a4abdf9d04716b1a5083 Mon Sep 17 00:00:00 2001 From: w3bdesign <45217974+w3bdesign@users.noreply.github.com> Date: Tue, 2 Mar 2021 06:32:07 +0100 Subject: [PATCH] Fix undefined --- utils/functions/functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/functions/functions.js b/utils/functions/functions.js index f24f21476..0a5144161 100644 --- a/utils/functions/functions.js +++ b/utils/functions/functions.js @@ -47,7 +47,7 @@ export const getFloatVal = (string) => { export const getFormattedCart = (data) => { let formattedCart = null; - if (undefined === data || !data.cart.contents.nodes.length) { + if (!data || !data.cart.contents.nodes.length) { return formattedCart; }