Skip to content

Commit 70bbc40

Browse files
committed
[useAuthHeaderLinks] Fix "missing key" issue
1 parent 53e74c1 commit 70bbc40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/useHeaderAuthLinks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const useHeaderAuthLinks = (): ReactElement[] => {
3030
<NavLink key='user-name' className='nav-item a-link' to='/profile/view'>
3131
{auth.user?.profile.name ?? auth.user?.profile.email ?? 'User profile'}
3232
</NavLink>,
33-
<Button label='LOG OUT' asLink onClick={onLogout} />,
33+
<Button key='logout' label='LOG OUT' asLink onClick={onLogout} />,
3434
);
3535
}
3636

0 commit comments

Comments
 (0)