mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-24 04:10:15 +01:00
🔧 refactor: Update getLoginError to use TranslationKeys for improved type safety
This commit is contained in:
parent
17b0f35f93
commit
14bd9f03fa
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue