Skip to content

Commit 9bc3d5b

Browse files
author
Sine Jespersen
committed
2414: add key to login map to avoid console errors
1 parent d0f9f54 commit 9bc3d5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/user/login.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,10 @@ function Login() {
386386
)}
387387

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

395395
<Form onSubmit={onSubmit}>

0 commit comments

Comments
 (0)