Explorar o código

[fix] withdraw

wenliming %!s(int64=2) %!d(string=hai) anos
pai
achega
dd71cd0cdf
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      src/view/popup/withdraw/info.vue

+ 1 - 4
src/view/popup/withdraw/info.vue

@@ -93,12 +93,9 @@ let state = reactive({
 })
 
 const inputWithdrawCalcFee = () => {
-  if(!state.input_amount) {
-    state.input_amount = 0;
-  }
   withdrawCalcFee({
     params: {
-      "amountValue": state.input_amount,
+      "amountValue": state.input_amount || 0,
       "currencyCode": withdraw_info.currency_code,
       "withdrawNetwork": withdraw_info.token_chain
     }