Commit b1c4d5d5 authored by Mahdi's avatar Mahdi Committed by Xavier Watkins
Browse files

hot fix for the broken clear basket button (#197)

parent ed04f3f5
......@@ -31,7 +31,12 @@ basketModule.factory('basketService', function($cookies, termService, $q) {
}
basketList.saveCookies = function(items) {
var cookieValue = items.join(',');
var cookieValue = items;
if (items instanceof Array) {
cookieValue = items.join(',');
}
$cookies.put(cookieName, cookieValue);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment