mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-27 12:54:09 +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) => {
|
import { TranslationKeys } from '~/hooks';
|
||||||
const defaultError = 'com_auth_error_login';
|
|
||||||
|
const getLoginError = (errorText: string): TranslationKeys => {
|
||||||
|
const defaultError: TranslationKeys = 'com_auth_error_login';
|
||||||
|
|
||||||
if (!errorText) {
|
if (!errorText) {
|
||||||
return defaultError;
|
return defaultError;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue