From 85f578f24f3922a4c70b39edd4ad5004a7736f50 Mon Sep 17 00:00:00 2001 From: koko37 Date: Wed, 18 Sep 2024 14:39:22 +0800 Subject: [PATCH] update eslint conf --- .eslintrc.cjs | 2 ++ src/pages/Token/index.jsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 3e212e1..8eab87d 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -17,5 +17,7 @@ module.exports = { 'warn', { allowConstantExport: true }, ], + 'no-unused-vars': 'warn', + 'react/prop-types': 'off', }, } diff --git a/src/pages/Token/index.jsx b/src/pages/Token/index.jsx index 3808150..4fbd88f 100644 --- a/src/pages/Token/index.jsx +++ b/src/pages/Token/index.jsx @@ -260,7 +260,7 @@ const Token = () => { } setHasErrorInput(false); - const txData = !!token.nativeToken + const txData = token.nativeToken ? { to: recipient, value: ethers.parseEther(amount.toString()),