Skip to content

Commit

Permalink
minor bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
claudia-romano committed Jul 15, 2016
1 parent 8305beb commit cbcd31a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,6 @@ jQuery(document).ready(function($){
}

function updateCartTotal(price, bool) {
bool ? cartTotal.text( (Number(cartTotal.text()) + price).toFixed(2) ) : cartTotal.text( (Number(cartTotal.text()) - price).toFixed(2) );
bool ? cartTotal.text( (Number(cartTotal.text()) + Number(price)).toFixed(2) ) : cartTotal.text( (Number(cartTotal.text()) - Number(price)).toFixed(2) );
}
});

0 comments on commit cbcd31a

Please sign in to comment.