improved flow

This commit is contained in:
Steve Waterworth
2018-02-14 09:29:47 +00:00
parent 547b0637df
commit 0ae34bcfbb
3 changed files with 3 additions and 12 deletions

View File

@@ -406,14 +406,6 @@
};
currentUser.cart = $scope.data.cart;
$scope.data.cont = true;
$http({
url: '/api/cart/cart/' + $scope.data.uniqueid,
method: 'DELETE'
}).then((res) => {
console.log('cart deleted ok');
}).catch((e) => {
console.log('ERROR cart delete', e);
});
}).catch((e) => {
console.log('ERROR', e);
$scope.data.message = 'ERROR placing order';