Skip to content

Commit

Permalink
chore: only show select another method button if available
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Nov 15, 2024
1 parent 40516c7 commit 0f72c91
Showing 1 changed file with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,20 @@ function RegistrationCardFooter() {
return (
<span className="text-sm font-normal antialiased leading-normal">
{formState.current === "method_active" ? (
<button
className="font-medium text-links-link-default"
type="submit"
onClick={handleScreenSelection}
>
{intl.formatMessage({
id: "card.footer.select-another-method",
defaultMessage: "Select another method",
})}
</button>
<>
{screenSelectionNode && (
<button
className="font-medium text-links-link-default"
type="submit"
onClick={handleScreenSelection}
>
{intl.formatMessage({
id: "card.footer.select-another-method",
defaultMessage: "Select another method",
})}
</button>
)}
</>
) : (
<>
{intl.formatMessage({
Expand Down

0 comments on commit 0f72c91

Please sign in to comment.