Skip to content

Commit 55cd36b

Browse files
author
Brett Wejrowski
committed
fixed parse error for cart items
1 parent 0351507 commit 55cd36b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

simpleCart.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,8 @@ function Cart(){
410410
outputValue = this.valueToCurrencyString( outputValue );
411411

412412
}
413-
if( info[1].toLowerCase() == "image" ||
414-
info[0].toLowerCase() == "image"){
413+
if( (info[1] && info[1].toLowerCase() == "image") ||
414+
(info[0] && info[0].toLowerCase() == "image") ){
415415

416416
outputValue = this.valueToImageString( outputValue );
417417

0 commit comments

Comments
 (0)