Skip to content

Commit

Permalink
advertiser page show 0 unit values instead of '-'
Browse files Browse the repository at this point in the history
  • Loading branch information
artsemkavaleu-deriv committed Feb 28, 2022
1 parent d787000 commit 9edaab7
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const AdvertiserPageStats = () => {
/>
</Text>
<Text as='p' color='prominent' line_height='m' size='xs' weight='bold'>
{buy_completion_rate ? `${buy_completion_rate}% (${buy_orders_count})` : '-'}
{buy_completion_rate ? `${buy_completion_rate}% (${buy_orders_count})` : '0% (0)'}
</Text>
</Table.Cell>
<div className='advertiser-page__stats-cell-separator' />
Expand All @@ -67,7 +67,7 @@ const AdvertiserPageStats = () => {
? localize('{{- avg_buy_time_in_minutes}} min', {
avg_buy_time_in_minutes,
})
: '-'}
: '00 min'}
</Text>
</Table.Cell>
</Table.Row>
Expand All @@ -89,7 +89,7 @@ const AdvertiserPageStats = () => {
/>
</Text>
<Text as='p' color='prominent' line_height='m' size='xs' weight='bold'>
{sell_completion_rate ? `${sell_completion_rate}% (${sell_orders_count})` : '-'}
{sell_completion_rate ? `${sell_completion_rate}% (${sell_orders_count})` : '0% (0)'}
</Text>
</Table.Cell>
<div className='advertiser-page__stats-cell-separator' />
Expand All @@ -112,7 +112,7 @@ const AdvertiserPageStats = () => {
? localize('{{- avg_release_time_in_minutes}} min', {
avg_release_time_in_minutes,
})
: '-'}
: '00 min'}
</Text>
</Table.Cell>
</Table.Row>
Expand Down Expand Up @@ -141,7 +141,7 @@ const AdvertiserPageStats = () => {
show_currency
/>
) : (
'-'
<Money amount={0.00} currency={general_store.client.currency} show_currency />
)}
</Text>
</Table.Cell>
Expand Down Expand Up @@ -179,7 +179,7 @@ const AdvertiserPageStats = () => {
/>
</Text>
<Text as='p' color='prominent' line_height='m' size='m' weight='bold'>
{buy_completion_rate ? `${buy_completion_rate}% (${buy_orders_count})` : '-'}
{buy_completion_rate ? `${buy_completion_rate}% (${buy_orders_count})` : '0% (0)'}
</Text>
</Table.Cell>
<div className='advertiser-page__stats-cell-separator' />
Expand All @@ -198,7 +198,7 @@ const AdvertiserPageStats = () => {
/>
</Text>
<Text as='p' color='prominent' line_height='m' size='m' weight='bold'>
{sell_completion_rate ? `${sell_completion_rate}% (${sell_orders_count})` : '-'}
{sell_completion_rate ? `${sell_completion_rate}% (${sell_orders_count})` : '0% (0)'}
</Text>
</Table.Cell>
<div className='advertiser-page__stats-cell-separator' />
Expand All @@ -220,7 +220,7 @@ const AdvertiserPageStats = () => {
{total_turnover ? (
<Money amount={total_turnover} currency={general_store.client.currency} show_currency />
) : (
'-'
<Money amount={0.00} currency={general_store.client.currency} show_currency />
)}
</Text>
</Table.Cell>
Expand All @@ -247,7 +247,7 @@ const AdvertiserPageStats = () => {
? localize('{{- avg_buy_time_in_minutes}} min', {
avg_buy_time_in_minutes,
})
: '-'}
: '00 min'}
</Text>
</Table.Cell>
<div className='advertiser-page__stats-cell-separator' />
Expand All @@ -270,7 +270,7 @@ const AdvertiserPageStats = () => {
? localize('{{- avg_release_time_in_minutes}} min', {
avg_release_time_in_minutes,
})
: '-'}
: '00 min'}
</Text>
</Table.Cell>
<div className='advertiser-page__stats-cell-separator' />
Expand Down

0 comments on commit 9edaab7

Please sign in to comment.