浏览代码

[fix] withdraw

wenliming 2 年之前
父节点
当前提交
dd71cd0cdf
共有 1 个文件被更改,包括 1 次插入4 次删除
  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 = () => {
 const inputWithdrawCalcFee = () => {
-  if(!state.input_amount) {
-    state.input_amount = 0;
-  }
   withdrawCalcFee({
   withdrawCalcFee({
     params: {
     params: {
-      "amountValue": state.input_amount,
+      "amountValue": state.input_amount || 0,
       "currencyCode": withdraw_info.currency_code,
       "currencyCode": withdraw_info.currency_code,
       "withdrawNetwork": withdraw_info.token_chain
       "withdrawNetwork": withdraw_info.token_chain
     }
     }