Skip to content

Commit

Permalink
fix(Positions): positions bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdt committed Mar 20, 2021
1 parent edf8527 commit ad0bc43
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/components/Market/PositionsCard/PositionsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,16 @@ const Position: React.FC<TokenProps> = ({ option }) => {
</StyledExpiry>
</StyledExpiryContainer>
<StyledValuesContainer>
<LineItem
label={'long options'}
data={
getScaledBalances().long !== '0'
? numeral(getScaledBalances().long).format('0.0000a')
: '--'
}
/>
{getScaledBalances().long !== '0' ? (
<LineItem
label={'long options'}
data={
getScaledBalances().long !== '0'
? numeral(getScaledBalances().long).format('0.0000a')
: '--'
}
/>
) : null}
{getScaledBalances().redeem !== '0' ? (
<LineItem
label={`short options`}
Expand Down

0 comments on commit ad0bc43

Please sign in to comment.