Skip to content

Commit dcd9503

Browse files
committed
fix: home activity feed dupe keys
1 parent 5fd113b commit dcd9503

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/home-page/Activity.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Activity = memo(({ devices, maxRows }: ActivityProps) => {
2020
<div className="card-body py-3">
2121
<h2 className="card-title">{t(($) => $.recent_activity)}</h2>
2222
<ul className={`grid grid-rows-${maxRows} gap-1 w-full`}>
23-
{recentActivityFeed.map((entry) => {
23+
{recentActivityFeed.map((entry, i) => {
2424
let ieeeAddress: string | undefined = entry.ieeeAddress;
2525

2626
if (!ieeeAddress) {
@@ -30,7 +30,7 @@ const Activity = memo(({ devices, maxRows }: ActivityProps) => {
3030

3131
return (
3232
<li
33-
key={`${entry.friendlyName}-${entry.sourceIdx}-${entry.activity}`}
33+
key={`${entry.friendlyName}-${entry.sourceIdx}-${entry.activity}-${entry.time}-${i}`}
3434
className="flex flex-row gap-1 items-center w-full px-1 rounded-field hover:bg-base-200"
3535
>
3636
<div className="text-xs font-semibold opacity-60 min-w-0">

0 commit comments

Comments
 (0)