added logic for zero estimated

This commit is contained in:
u-e 2019-01-15 13:47:43 +03:00
parent 9d1cce4781
commit d7c685f17a

View File

@ -225,22 +225,22 @@ class UpvoteView extends Component {
<Text style={styles.detailsText}>
{`${intl.formatMessage({
id: 'payout.promoted',
})} ~$${promotedPayout}`}
})} ${promotedPayout > 0 ? '~' : ''}$${promotedPayout}`}
</Text>
<Text style={styles.detailsText}>
{`${intl.formatMessage({
id: 'payout.potential_payout',
})} ~$${pendingPayout}`}
})} ${pendingPayout > 0 ? '~' : ''}$${pendingPayout}`}
</Text>
<Text style={styles.detailsText}>
{`${intl.formatMessage({
id: 'payout.author_payout',
})} ~$${authorPayout}`}
})} ${authorPayout > 0 ? '~' : ''}$${authorPayout}`}
</Text>
<Text style={styles.detailsText}>
{`${intl.formatMessage({
id: 'payout.curation_payout',
})} ~$${curationPayout}`}
})} ${curationPayout > 0 ? '~' : ''}$${curationPayout}`}
</Text>
<Text style={styles.detailsText}>
{`${intl.formatMessage({