Skip to content

Commit

Permalink
currency display fix
Browse files Browse the repository at this point in the history
  • Loading branch information
artsemkavaleu-deriv committed Feb 24, 2022
1 parent f0e2c90 commit 8633a96
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
3 changes: 1 addition & 2 deletions packages/p2p/src/components/misc/toggle-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
border-radius: $BORDER_RADIUS;

@include tablet-up {
margin-top: 2.4rem;
margin-bottom: 4.8rem;
margin: 2.4rem 0 4.8rem;
}

@include mobile {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,15 @@ const MyProfileStatsTable = () => {
/>
</Text>
<Text as='p' color='prominent' line_height='m' size='xs' weight='bold'>
<Money
amount={total_turnover || '-'}
currency={general_store.client.currency}
show_currency
/>
{total_turnover ? (
<Money
amount={total_turnover}
currency={general_store.client.currency}
show_currency
/>
) : (
'-'
)}
</Text>
</Table.Cell>
<Table.Cell className='my-profile-stats-table__cell'>
Expand Down Expand Up @@ -308,11 +312,11 @@ const MyProfileStatsTable = () => {
/>
</Text>
<Text as='p' color='prominent' line_height='m' size='xs' weight='bold'>
<Money
amount={total_turnover || '-'}
currency={general_store.client.currency}
show_currency
/>
{total_turnover ? (
<Money amount={total_turnover} currency={general_store.client.currency} show_currency />
) : (
'-'
)}
</Text>
</Table.Cell>
<Table.Cell className='my-profile-stats-table__cell'>
Expand Down

0 comments on commit 8633a96

Please sign in to comment.