fix(@desktop/wallet): SwapModal: Fix for can approve Swap with no amount entered
fixes #15553
This commit is contained in:
parent
1e88756c13
commit
fd3b76115f
|
@ -47,13 +47,13 @@ StatusDialog {
|
||||||
|
|
||||||
function fetchSuggestedRoutes() {
|
function fetchSuggestedRoutes() {
|
||||||
if (root.swapInputParamsForm.isFormFilledCorrectly()) {
|
if (root.swapInputParamsForm.isFormFilledCorrectly()) {
|
||||||
root.swapAdaptor.validSwapProposalReceived = false
|
|
||||||
root.swapAdaptor.swapProposalLoading = true
|
root.swapAdaptor.swapProposalLoading = true
|
||||||
root.swapAdaptor.approvalPending = false
|
|
||||||
root.swapAdaptor.approvalSuccessful = false
|
|
||||||
root.swapAdaptor.swapOutputData.resetPathInfoAndError()
|
|
||||||
debounceFetchSuggestedRoutes()
|
|
||||||
}
|
}
|
||||||
|
root.swapAdaptor.validSwapProposalReceived = false
|
||||||
|
root.swapAdaptor.approvalPending = false
|
||||||
|
root.swapAdaptor.approvalSuccessful = false
|
||||||
|
root.swapAdaptor.swapOutputData.resetPathInfoAndError()
|
||||||
|
debounceFetchSuggestedRoutes()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue