Skip to content

Commit

Permalink
Eslint config: fix require-await rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ioay committed Jan 16, 2024
1 parent 669e6d0 commit ac3de29
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
8 changes: 0 additions & 8 deletions dapp/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@
"@typescript-eslint/no-floating-promises": "off"
}
},
{
"files": [
"src/components/shared/TokenAmountForm/index.tsx"
],
"rules": {
"@typescript-eslint/require-await": "off"
}
}
],
"settings": {
"import/resolver": {
Expand Down
5 changes: 1 addition & 4 deletions dapp/src/components/shared/TokenAmountForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ const TokenAmountForm = withFormik<TokenAmountFormProps, TokenAmountFormValues>(
mapPropsToValues: () => ({
amount: undefined,
}),
validate: async (
{ amount },
{ tokenBalance, currency, minTokenAmount },
) => {
validate: ({ amount }, { tokenBalance, currency, minTokenAmount }) => {
const errors: FormikErrors<TokenAmountFormValues> = {}

errors.amount = validateTokenAmount(
Expand Down

0 comments on commit ac3de29

Please sign in to comment.