🔧 refactor: Update getLoginError to use TranslationKeys for improved type safety
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user