mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
fix(ui): connector name should fallback to en (#1718)
connector name should fallback to en
This commit is contained in:
parent
3deb98c18d
commit
3af5b1b425
1 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
import { Language } from '@logto/phrases-ui';
|
||||
import classNames from 'classnames';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
|
@ -19,7 +20,7 @@ const SocialLinkButton = ({ isDisabled, className, target, name, logo, onClick }
|
|||
i18n: { language },
|
||||
} = useTranslation();
|
||||
|
||||
const localName = name[language] ?? target;
|
||||
const localName = name[language] ?? name[Language.English];
|
||||
|
||||
return (
|
||||
<button
|
||||
|
|
Loading…
Reference in a new issue