Skip to content

Commit

Permalink
Update shortcut.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Codencode committed Sep 20, 2024
1 parent d13b823 commit 3de20cc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions 202/_dev/js/shortcut.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,15 @@ const Shortcut = {
createOrder: async function(data, actions) {
let result = await Shortcut.checkCartStillOrderable();

if (!result) {
window.location.reload();
} else {
if (result) {
return Shortcut.getIdOrder();
}
},

onError(err) {
window.location.reload();
},

onApprove: function(data, actions) {
Shortcut.sendData(data);
},
Expand Down

0 comments on commit 3de20cc

Please sign in to comment.