From 3300c1ec2f58e0d3fb51207eb75c39f180b2b372 Mon Sep 17 00:00:00 2001 From: Sadaqat Ali Date: Mon, 14 Feb 2022 19:06:52 +0500 Subject: [PATCH] hide 2nd para when previousDelegation is 0 --- src/screens/transfer/screen/delegateScreen.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/screens/transfer/screen/delegateScreen.js b/src/screens/transfer/screen/delegateScreen.js index f4099188a..bb184f136 100644 --- a/src/screens/transfer/screen/delegateScreen.js +++ b/src/screens/transfer/screen/delegateScreen.js @@ -200,12 +200,14 @@ class DelegateScreen extends Component { delegator: destination, }, ), - para: intl.formatMessage( - { id: 'transfer.confirm_summary_para' }, - { - prev: delegatedHP, - }, - ), + para: delegatedHP + ? intl.formatMessage( + { id: 'transfer.confirm_summary_para' }, + { + prev: delegatedHP, + }, + ) + : null, buttons: [ { text: intl.formatMessage({ id: 'alert.cancel' }),