diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp index 3d2f04d10d..deaabaf85f 100644 --- a/src/qt/transactiondesc.cpp +++ b/src/qt/transactiondesc.cpp @@ -326,12 +326,14 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco CSparkOutputTx sparkOutput; if (wallet->GetSparkOutputTx(txout.scriptPubKey, sparkOutput)) { - foundSparkOutput = true; - if (firstMessage) { - strHTML += "
" + tr("Messages") + ":
"; - firstMessage = false; + if (!sparkOutput.memo.empty()) { + foundSparkOutput = true; + if (firstMessage) { + strHTML += "
" + tr("Messages") + ":
"; + firstMessage = false; + } + strHTML += "• " + GUIUtil::HtmlEscape(sparkOutput.memo, true) + "
"; } - strHTML += "• " + GUIUtil::HtmlEscape(sparkOutput.memo, true) + "
"; } } }