🔧 refactor: Update getLoginError to use TranslationKeys for improved type safety

This commit is contained in:
Ruben Talstra 2025-03-10 12:48:42 +01:00
parent 17b0f35f93
commit 14bd9f03fa
No known key found for this signature in database
GPG key ID: 2A5A7174A60F3BEA

View file

@ -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;