Skip to content

Commit

Permalink
fix me baby one more time
Browse files Browse the repository at this point in the history
  • Loading branch information
jasbanza committed Nov 3, 2023
1 parent 7fd1cfd commit 53d5159
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
19 changes: 9 additions & 10 deletions docs/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -211898,7 +211898,7 @@ function _cancelOrder() {
case 0:
_context11.prev = 0;
if (!window.getOfflineSignerAuto) {
_context11.next = 28;
_context11.next = 27;
break;
}
_context11.next = 4;
Expand Down Expand Up @@ -211947,27 +211947,26 @@ function _cancelOrder() {
result = _context11.sent;
ui_showResponse(result);
ui_removeOrder(orderId);
_context11.next = 27;
_context11.next = 26;
break;
case 23:
_context11.prev = 23;
_context11.t0 = _context11["catch"](15);
ui_hideElementById("lastTxHash");
ui_showError(_context11.t0.message);
case 27:
case 26:
ui_hideLoadingMask();
case 28:
_context11.next = 33;
case 27:
_context11.next = 32;
break;
case 30:
_context11.prev = 30;
case 29:
_context11.prev = 29;
_context11.t1 = _context11["catch"](0);
console.error(_context11.t1);
case 33:
case 32:
case "end":
return _context11.stop();
}
}, _callee11, null, [[0, 30], [15, 23]]);
}, _callee11, null, [[0, 29], [15, 23]]);
}));
return _cancelOrder.apply(this, arguments);
}
Expand Down
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ async function cancelOrder(orderId) {
ui_removeOrder(orderId);

} catch (error) {
ui_hideElementById("lastTxHash");
ui_showError(error.message);
}
ui_hideLoadingMask();
Expand Down Expand Up @@ -320,7 +319,7 @@ function ui_removeOrder(orderId) {

const orderDiv = document.querySelector(`.order[data-id="${orderId}"]`);
if (!orderDiv) return;

ordersDiv.removeChild(orderDiv);
}

Expand Down

0 comments on commit 53d5159

Please sign in to comment.