Skip to content

Commit 4796516

Browse files
authored
Fix modal for delete product (#768)
1 parent ec65d3c commit 4796516

File tree

1 file changed

+8
-6
lines changed
  • governance/xc_admin/packages/xc_admin_frontend/components/tabs

1 file changed

+8
-6
lines changed

governance/xc_admin/packages/xc_admin_frontend/components/tabs/General.tsx

+8-6
Original file line numberDiff line numberDiff line change
@@ -626,14 +626,16 @@ const General = () => {
626626
)
627627
}
628628

629-
const OldPriceFeedsRows = ({ priceFeedData }: { priceFeedData: any }) => {
629+
const OldPriceFeedsRows = ({
630+
priceFeedSymbol,
631+
}: {
632+
priceFeedSymbol: string
633+
}) => {
630634
return (
631635
<>
632-
<tr key={priceFeedData.metadata.symbol}>
636+
<tr key={priceFeedSymbol}>
633637
<td className="base16 py-4 pl-6 pr-2 lg:pl-6">Symbol</td>
634-
<td className="base16 py-4 pl-1 pr-2 lg:pl-6">
635-
{priceFeedData.metadata.symbol}
636-
</td>
638+
<td className="base16 py-4 pl-1 pr-2 lg:pl-6">{priceFeedSymbol}</td>
637639
</tr>
638640
</>
639641
)
@@ -676,7 +678,7 @@ const General = () => {
676678
{addPriceFeed ? (
677679
<NewPriceFeedsRows key={key} priceFeedData={newChanges} />
678680
) : deletePriceFeed ? (
679-
<OldPriceFeedsRows key={key} priceFeedData={prev} />
681+
<OldPriceFeedsRows key={key} priceFeedSymbol={key} />
680682
) : (
681683
diff.map((k) =>
682684
k === 'metadata' ? (

0 commit comments

Comments
 (0)