Skip to content

Commit

Permalink
2414: add key to login map to avoid console errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sinejespersen committed Oct 7, 2024
1 parent d0f9f54 commit 9bc3d5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/user/login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,10 @@ function Login() {
)}

{usernamePasswordLogins.length > 0 &&
usernamePasswordLogins.map((loginMethod) => (
<div key={loginMethod.provider}>
usernamePasswordLogins.map(({ label, type }) => (
<div key={type}>
<h2 className="h4 mt-5 mb-3 fw-light">
{loginMethod.label ?? t("os2-display-user-header")}
{label ?? t("os2-display-user-header")}
</h2>

<Form onSubmit={onSubmit}>
Expand Down

0 comments on commit 9bc3d5b

Please sign in to comment.