소스 검색

[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 = () => {
-  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
     }