Skip to content

Commit

Permalink
fix: preferences - added missing react key
Browse files Browse the repository at this point in the history
  • Loading branch information
vojty authored and rileylnapier committed Mar 1, 2024
1 parent 36c17ff commit 40a1dc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/react-preferences/src/components/PreferencesV4.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useMemo, useState } from "react";
import React, { Fragment, useEffect, useMemo, useState } from "react";
import styled from "styled-components";
import { usePreferences } from "@trycourier/react-hooks";
import {
Expand Down Expand Up @@ -405,7 +405,7 @@ export const PreferenceSections: React.FunctionComponent<{
<>
<SectionHeader>{section.name}</SectionHeader>
{memoizedTopics.map(({ topic, recipientPreference }, index) => (
<>
<Fragment key={index}>
<PreferenceTopic
topic={topic}
defaultRoutingOptions={section.routingOptions}
Expand All @@ -415,7 +415,7 @@ export const PreferenceSections: React.FunctionComponent<{
routingPreferences={recipientPreference?.routingPreferences ?? []}
/>
{index < memoizedTopics.length - 1 && <SubscriptionDivider />}
</>
</Fragment>
))}
</>
);
Expand Down

0 comments on commit 40a1dc5

Please sign in to comment.