hide 2nd para when previousDelegation is 0

This commit is contained in:
Sadaqat Ali 2022-02-14 19:06:52 +05:00
parent 2fbb8a0ec4
commit 3300c1ec2f

View File

@ -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' }),