Skip to content

Commit

Permalink
Suisin/solve passkey header issue (#43)
Browse files Browse the repository at this point in the history
* chore: fix header not bold issue

* chore: update passkey creation fail content
  • Loading branch information
suisin-deriv committed Apr 26, 2024
1 parent 696ffb8 commit 45b15fb
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ type TGetModalContent = {
export const NOT_SUPPORTED_ERROR_NAME = 'NotSupportedError';

export const getModalContent = ({ error, is_passkey_registration_started }: TGetModalContent) => {
const error_message_header = <Localize i18n_default_text='Passkey login unavailable' />;
const error_message_header = (
<Text size='xs' weight='bold'>
<Localize i18n_default_text='Passkey setup failed' />
</Text>
);

const error_message =
(error as TServerError)?.name === NOT_SUPPORTED_ERROR_NAME ? (
Expand Down

0 comments on commit 45b15fb

Please sign in to comment.