Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some typos in comments #1596

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/screens/MasterPassword/Login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const Login: React.FC<LoginProps> = ({ navigation }) => {
return;
}
if (Platform.OS === 'ios') {
// Because only iOS-Face ID is require permission, then we need to check permission's availbility
// Because only iOS-Face ID is require permission, then we need to check permission's availability
(async () => {
try {
const isBiometricAvailable = await getSupportedBiometryType();
Expand Down
4 changes: 2 additions & 2 deletions src/screens/Transaction/helper/staking/stakingHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function getWaitingTime(currentTimestampMs: number, targetTimestampMs?: n
} else {
const remainingTimeHr = remainingTimestampMs / 1000 / 60 / 60;

// Formatted waitting time without round up
// Formatted waiting time without round up

const _formattedWaitingTime = humanizeDuration(remainingTimestampMs, {
units: remainingTimeHr >= 24 ? ['d', 'h'] : ['h', 'm'],
Expand All @@ -60,7 +60,7 @@ export function getWaitingTime(currentTimestampMs: number, targetTimestampMs?: n
}, // TODO: should not be shorten
}) as string;

// Formatted waitting time with round up
// Formatted waiting time with round up
const formattedWaitingTime = _formattedWaitingTime
.split(' ')
.map((segment, index) => {
Expand Down
2 changes: 1 addition & 1 deletion src/stores/base/RequestState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const initialState: RequestState = {
transactionRequest: {},
connectWCRequest: {},

// Type of confirmation requets
// Type of confirmation requests
addNetworkRequest: {},
addTokenRequest: {},
switchNetworkRequest: {},
Expand Down
2 changes: 1 addition & 1 deletion src/utils/scanner/decoders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export const constructDataFromBytes = (
}

default:
throw new Error('Payload is not formated correctly: ' + bytes.toString());
throw new Error('Payload is not formatted correctly: ' + bytes.toString());
}
} catch (e: unknown) {
if (e instanceof Error) {
Expand Down