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,15 +47,15 @@ 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.validSwapProposalReceived = false
|
||||||
root.swapAdaptor.approvalPending = false
|
root.swapAdaptor.approvalPending = false
|
||||||
root.swapAdaptor.approvalSuccessful = false
|
root.swapAdaptor.approvalSuccessful = false
|
||||||
root.swapAdaptor.swapOutputData.resetPathInfoAndError()
|
root.swapAdaptor.swapOutputData.resetPathInfoAndError()
|
||||||
debounceFetchSuggestedRoutes()
|
debounceFetchSuggestedRoutes()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: root.swapInputParamsForm
|
target: root.swapInputParamsForm
|
||||||
|
|
Loading…
Reference in New Issue