Skip to content

Commit 112469c

Browse files
committed
Fix undefined
1 parent 66d1124 commit 112469c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/functions/functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const getFloatVal = (string) => {
4747
export const getFormattedCart = (data) => {
4848
let formattedCart = null;
4949

50-
if (undefined === data || !data.cart.contents.nodes.length) {
50+
if (!data || !data.cart.contents.nodes.length) {
5151
return formattedCart;
5252
}
5353

0 commit comments

Comments
 (0)