diff --git a/app/renderer/components/SwapList.js b/app/renderer/components/SwapList.js index 3b58bede72..5cf7fd7fb3 100644 --- a/app/renderer/components/SwapList.js +++ b/app/renderer/components/SwapList.js @@ -21,12 +21,9 @@ const SortDirections = { // eslint-disable-next-line no-unused-vars class CancelButton extends React.Component { - state = { - isCancelling: false, - } - cancelSwap = async swapUuid => { - this.setState({isCancelling: true}); + await tradesContainer.setIsSwapCancelling(swapUuid, true); + this.forceUpdate(); try { await appContainer.api.cancelOrder(swapUuid); @@ -43,7 +40,10 @@ class CancelButton extends React.Component {