Unverified Commit 0ada925f authored by valentinewallace's avatar valentinewallace Committed by GitHub

Merge pull request #1079 from lightninglabs/dev/fix-invoice-message

Don’t display `null` in invoice received notification
parents 41ee3896 b569a4f4
...@@ -152,7 +152,7 @@ class TransactionAction { ...@@ -152,7 +152,7 @@ class TransactionAction {
let inv = computedTransactions.find(tx => tx.id === toHex(invoice.rHash)); let inv = computedTransactions.find(tx => tx.id === toHex(invoice.rHash));
this._notification.display({ this._notification.display({
type: 'success', type: 'success',
msg: `Invoice success: received ${inv.amountLabel} ${unitLabel}`, msg: `Invoice success: received ${inv.amountLabel} ${unitLabel || ''}`,
handler: () => this.select({ item: inv }), handler: () => this.select({ item: inv }),
handlerLbl: 'View details', handlerLbl: 'View details',
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment