0
Fork 0
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:
simeng-li 2022-08-02 13:46:29 +08:00 committed by GitHub
parent 3deb98c18d
commit 3af5b1b425
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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