Skip to content

Commit

Permalink
Merge pull request #655 from oasisprotocol/csillag/restore-lost-commit
Browse files Browse the repository at this point in the history
Remove random async keyword
  • Loading branch information
csillag authored Jul 4, 2023
2 parents a4788e1 + 25fadaf commit b9a9b1f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .changelog/655.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove random async keyword
2 changes: 1 addition & 1 deletion src/app/pages/TokenDashboardPage/TokenTypeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const getTokenTypeName = (t: TFunction, type: EvmTokenType): string => {
case 'ERC20':
return t('account.ERC20')
default:
void exhaustedTypeWarning('Unknown token type', type)
exhaustedTypeWarning('Unknown token type', type)
return type
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/types/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface ErrorPayload {
// Adds strict type-check that a type was exhausted
// https://www.typescriptlang.org/docs/handbook/2/narrowing.html#exhaustiveness-checking
// https://stackoverflow.com/questions/41102060/typescript-extending-error-class
export async function exhaustedTypeWarning(
export function exhaustedTypeWarning(
messagePrefix: string,
exhaustedType: 'Expected type to be exhausted, but this type was not handled',
) {
Expand Down

0 comments on commit b9a9b1f

Please sign in to comment.