Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
totop716 committed Jul 7, 2024
1 parent 86d66f9 commit f8a0db2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/AssetModal/AssetModal.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import { ChainId } from '@uniswap/sdk';
import { CurrencyLogo, CustomModal } from 'components';
import { useMemo, useState } from 'react';
import { useActiveWeb3React } from 'hooks';
Expand Down Expand Up @@ -71,8 +70,8 @@ const AssetModal: React.FC<AssetModalProps> = ({
withdrawalFee = data[0].chain_details[0].withdrawal_fee;
}

const [data] = usePositionStream();
const unsettledPnl = Number(data?.aggregated?.unsettledPnL ?? 0);
const [aggregatedData] = usePositionStream();
const unsettledPnl = Number(aggregatedData?.aggregated?.unsettledPnL ?? 0);

return (
<CustomModal
Expand Down

0 comments on commit f8a0db2

Please sign in to comment.