diff --git a/src/transaction/TransactionList.js b/src/transaction/TransactionList.js
index 4704beabd01180a0598e2268c79512691fc120e2..41c244203a7ba126598ced0b6067053662c33af7 100644
--- a/src/transaction/TransactionList.js
+++ b/src/transaction/TransactionList.js
@@ -41,12 +41,11 @@ function TransactionList() {
     setTypes(newTypes);
   };
 
-  let memberStr = "";
-  if (transaction.member) {
-    memberStr = transaction.member.name + " (" + transaction.member.num + ")";
-  }
-
   const entries = transactions.map((transaction) => {
+    let memberStr = "";
+    if (transaction.member) {
+      memberStr = transaction.member.name + " (" + transaction.member.num + ")";
+    }
     return (
       <TransactionTr key={transaction.ID} transaction={transaction}>
         <td>{icon(transaction)}</td>