From 555c8aa9d2fc36bb12e062c77bf6813b9b024c76 Mon Sep 17 00:00:00 2001 From: u-e Date: Tue, 15 Jan 2019 13:47:43 +0300 Subject: [PATCH] added logic for zero estimated --- src/components/upvote/view/upvoteView.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/upvote/view/upvoteView.js b/src/components/upvote/view/upvoteView.js index 3592b0cbc..26159790c 100644 --- a/src/components/upvote/view/upvoteView.js +++ b/src/components/upvote/view/upvoteView.js @@ -225,22 +225,22 @@ class UpvoteView extends Component { {`${intl.formatMessage({ id: 'payout.promoted', - })} ~$${promotedPayout}`} + })} ${promotedPayout > 0 ? '~' : ''}$${promotedPayout}`} {`${intl.formatMessage({ id: 'payout.potential_payout', - })} ~$${pendingPayout}`} + })} ${pendingPayout > 0 ? '~' : ''}$${pendingPayout}`} {`${intl.formatMessage({ id: 'payout.author_payout', - })} ~$${authorPayout}`} + })} ${authorPayout > 0 ? '~' : ''}$${authorPayout}`} {`${intl.formatMessage({ id: 'payout.curation_payout', - })} ~$${curationPayout}`} + })} ${curationPayout > 0 ? '~' : ''}$${curationPayout}`} {`${intl.formatMessage({