Skip to content
This repository was archived by the owner on Dec 28, 2023. It is now read-only.

Commit 6a16c3c

Browse files
authored
Removed console errors (#281)
1 parent a780b52 commit 6a16c3c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/global/Header/NavigationLinks/NavigationLinks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function NavigationLinks() {
2828

2929
// Rendering component here.
3030
return (
31-
<Fragment>
31+
<Fragment key={route.path}>
3232
{hidden_menu_items.includes(route?.path) ? (
3333
// Hide specific links if website is rendered on non-deriv domain.
3434
<RenderOfficialDomainContents Component={LinkComponent} />

src/routes-data/sidebar-routes.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function LinkComponent({ route, path }) {
176176
route.children.map(child => {
177177
// If there are children, recursively go over the nested children.
178178
return !child.is_collapsible ? (
179-
<Fragment key={child.label}>
179+
<Fragment key={child.path}>
180180
<LinkComponent route={child} path={`${path}/${child.path}`} />
181181
</Fragment>
182182
) : (

0 commit comments

Comments
 (0)