Browse Source

[fix] withdraw

wenliming 2 năm trước cách đây
mục cha
commit
dd71cd0cdf
1 tập tin đã thay đổi với 1 bổ sung4 xóa
  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
     }