From 1e16fbc6caf74498b002308b9e5565a8ef8799bb Mon Sep 17 00:00:00 2001
From: Fallen Kiyori <1794152+afallenhope@users.noreply.github.com>
Date: Mon, 15 Jul 2024 17:06:39 -0400
Subject: [PATCH] ALCH-64 only track successful transactions

---
 indra/newview/llviewermessage.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index f30536f4647..1d0be72db65 100644
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -5306,7 +5306,11 @@ static void process_money_balance_reply_extended(LLMessageSystem* msg)
     }
 
     LLFloaterTransactionLog* floater = LLFloaterReg::findTypedInstance<LLFloaterTransactionLog>("transaction_log");
-    if (floater) floater->addTransaction(LLDate::now(), source_id, amount, !you_paid_someone);
+    // only log the successful transactions --FLN
+    if (success && floater)
+    {
+        floater->addTransaction(LLDate::now(), source_id, amount, !you_paid_someone);
+    }
 
     // Despite using SLURLs, wait until the name is available before
     // showing the notification, otherwise the UI layout is strange and
-- 
GitLab