diff --git a/client/src/utils/getLoginError.ts b/client/src/utils/getLoginError.ts index 27fafed0cf..492948d6e6 100644 --- a/client/src/utils/getLoginError.ts +++ b/client/src/utils/getLoginError.ts @@ -1,5 +1,7 @@ -const getLoginError = (errorText: string) => { - const defaultError = 'com_auth_error_login'; +import { TranslationKeys } from '~/hooks'; + +const getLoginError = (errorText: string): TranslationKeys => { + const defaultError: TranslationKeys = 'com_auth_error_login'; if (!errorText) { return defaultError;