From 1189d85dbd9ab350e364a8983ba43707c0c9fee3 Mon Sep 17 00:00:00 2001 From: xiaolou86 <20718693+xiaolou86@users.noreply.github.com> Date: Fri, 27 Oct 2023 10:10:35 +0800 Subject: [PATCH] fix: typos in comments --- cypress/support/steps/main.steps.ts | 2 +- cypress/support/steps/verification.steps.ts | 2 +- src/helpers/useTransactionHandler.tsx | 4 ++-- src/hooks/useTransactionHistory.tsx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cypress/support/steps/main.steps.ts b/cypress/support/steps/main.steps.ts index 4e7e3a3d0c..45b5d5f595 100644 --- a/cypress/support/steps/main.steps.ts +++ b/cypress/support/steps/main.steps.ts @@ -263,7 +263,7 @@ export const repay = ( }; /** - * This full step for withdraw any availble assets + * This full step for withdraw any available assets * @example *``` * // Withdraw ETH diff --git a/cypress/support/steps/verification.steps.ts b/cypress/support/steps/verification.steps.ts index 046ae0eb35..a0265fe6ab 100644 --- a/cypress/support/steps/verification.steps.ts +++ b/cypress/support/steps/verification.steps.ts @@ -261,7 +261,7 @@ export const changeBorrowTypeBlocked = ( /** * This full step to verification dashboard health factor * - * Could be use one value by 'value' - varibale + * Could be use one value by 'value' - variable * * Could be use range by valueFrom and valueTo * diff --git a/src/helpers/useTransactionHandler.tsx b/src/helpers/useTransactionHandler.tsx index 0bcd6d6bd1..72d75a5a5c 100644 --- a/src/helpers/useTransactionHandler.tsx +++ b/src/helpers/useTransactionHandler.tsx @@ -349,7 +349,7 @@ export const useTransactionHandler = ({ }; // populate txns - // fetches standard txs (optional aproval + action), then based off availability and user preference, set tx flow and gas estimation to permit or approve + // fetches standard txs (optional approval + action), then based off availability and user preference, set tx flow and gas estimation to permit or approve useEffect(() => { if (!skip) { setLoadingTxns(true); @@ -368,7 +368,7 @@ export const useTransactionHandler = ({ handleGetPermitTxns && permitAction; if (approvalTransactions.length > 0 && preferPermit) { - // For permit flow, jsut use recommendation for gas limit as estimation will always fail without signature and tx must be rebuilt with signature anyways + // For permit flow, just use recommendation for gas limit as estimation will always fail without signature and tx must be rebuilt with signature anyways setUsePermit(true); const gas = gasLimitRecommendations[permitAction]; setGasLimit(gas.limit || ''); diff --git a/src/hooks/useTransactionHistory.tsx b/src/hooks/useTransactionHistory.tsx index eb699cd7ab..aaa4eccfb2 100644 --- a/src/hooks/useTransactionHistory.tsx +++ b/src/hooks/useTransactionHistory.tsx @@ -23,7 +23,7 @@ export const applyTxHistoryFilters = ({ }: HistoryFilters & { txns: TransactionHistoryItemUnion[] }) => { let filteredTxns: TransactionHistoryItemUnion[]; - // Apply seach filter + // Apply search filter if (searchQuery.length > 0) { const lowerSearchQuery = searchQuery.toLowerCase();