Skip to content

Commit

Permalink
fix: using index to avoid two children with the same key
Browse files Browse the repository at this point in the history
  • Loading branch information
khakimov committed Nov 12, 2023
1 parent 11bd77c commit cf43b77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/pages/Pile/Toasts/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export default function Toasts() {
const { notifications, addNotification } = useToastsContext();

const renderNotifications = () => {
return notifications.map((n) => {
return <Toast key={n.id} notification={n} />;
return notifications.map((n, index) => {
return <Toast key={index} notification={n} />;
});
};

Expand Down

0 comments on commit cf43b77

Please sign in to comment.