From 838b756bf5590327088b5eaee81e557c342ccee6 Mon Sep 17 00:00:00 2001 From: crazeteam Date: Tue, 10 Dec 2024 19:18:11 +0800 Subject: [PATCH] chore: fix some typos Signed-off-by: crazeteam --- src/backup/BackupQuiz.tsx | 2 +- src/fiatconnect/ReviewScreen.tsx | 6 +++--- src/redux/sagas.ts | 2 +- src/utils/time.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/backup/BackupQuiz.tsx b/src/backup/BackupQuiz.tsx index 624cc33760a..02d2e3a6627 100644 --- a/src/backup/BackupQuiz.tsx +++ b/src/backup/BackupQuiz.tsx @@ -33,7 +33,7 @@ const TAG = 'backup/BackupQuiz' const MNEMONIC_BUTTONS_TO_DISPLAY = 6 -// miliseconds to wait until showing success or failure +// milliseconds to wait until showing success or failure const CHECKING_DURATION = 1.8 * 1000 export enum Mode { diff --git a/src/fiatconnect/ReviewScreen.tsx b/src/fiatconnect/ReviewScreen.tsx index c72ce1d49fa..5357f870e65 100644 --- a/src/fiatconnect/ReviewScreen.tsx +++ b/src/fiatconnect/ReviewScreen.tsx @@ -73,7 +73,7 @@ const usePrepareBaseFiatConnectOutTransactions = ({ ) } - // note that the receipient address on the prepared transaction is the + // note that the recipient address on the prepared transaction is the // user's own address. this will be replaced by the fiatconnect provider // transfer address in the sagas if the user proceeds with the transaction. // the provider address is not known until making a POST request to the @@ -323,8 +323,8 @@ export default function FiatConnectReviewScreen({ route, navigation }: Props) { serializablePreparedTransaction: prepareTransactionsResult.result?.type === 'possible' ? getSerializablePreparedTransaction( - prepareTransactionsResult.result.transactions[0] // there should be only one transaction - ) + prepareTransactionsResult.result.transactions[0] // there should be only one transaction + ) : undefined, networkId: token?.networkId, }) diff --git a/src/redux/sagas.ts b/src/redux/sagas.ts index 79a4c806286..0409e70ab11 100644 --- a/src/redux/sagas.ts +++ b/src/redux/sagas.ts @@ -87,7 +87,7 @@ function* loggerSaga() { ) { // Log only action type, but not the payload as it can have sensitive // information or information that is not helpful for debugging. Excluding - // all IDENTITY/ actions because high likelyhood they contain PII and the + // all IDENTITY/ actions because high likelihood they contain PII and the // blocklist may get out of date. Logger.debug('redux/saga@logger', `${action.type} (payload not logged)`) return diff --git a/src/utils/time.ts b/src/utils/time.ts index c861e2bf907..f140b90cf38 100644 --- a/src/utils/time.ts +++ b/src/utils/time.ts @@ -58,7 +58,7 @@ function timeDifference(currTime: number, prevTime: number) { return 1.0 * (millisecondsSinceEpoch(currTime) - millisecondsSinceEpoch(prevTime)) } -// some timestamps are in seconds, some are in miliseconds +// some timestamps are in seconds, some are in milliseconds // assume dates will be within a few decades of now and multiple accordingly function millisecondsSinceEpoch(timestamp: number) { return Math.abs(differenceInYears(timestamp, Date.now())) > 40 ? timestamp * 1000 : timestamp