Skip to content

Commit

Permalink
web: fix mfa fallback string
Browse files Browse the repository at this point in the history
* also add selected style to mfa type selector button

Signed-off-by: 01zulfi <[email protected]>
  • Loading branch information
01zulfi committed Dec 20, 2024
1 parent 6098935 commit 0cba454
Show file tree
Hide file tree
Showing 4 changed files with 1,014 additions and 1,015 deletions.
7 changes: 5 additions & 2 deletions apps/web/src/dialogs/mfa/steps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ function ChooseAuthenticator(props: ChooseAuthenticatorProps) {
justifyContent: "start",
alignItems: "start",
textAlign: "left",
bg: "transparent",
bg: selected === index ? "shade" : "transparent",
px: 0
}}
onClick={() => setSelected(index)}
Expand Down Expand Up @@ -759,7 +759,10 @@ function Fallback2FAEnabled(props: Fallback2FAEnabledProps) {
mt={1}
sx={{ textAlign: "center", color: "var(--paragraph-secondary)" }}
>
{strings.mfaFallbackMethodText(fallbackMethod, primaryMethod)}
{strings.mfaFallbackMethodText(
strings[fallbackMethod]().toLocaleLowerCase(),
strings[primaryMethod]().toLocaleLowerCase()
)}
</Text>
<Button
mt={2}
Expand Down
Loading

0 comments on commit 0cba454

Please sign in to comment.