Skip to content

Commit

Permalink
Fix incoming transfers display (#2012)
Browse files Browse the repository at this point in the history
  • Loading branch information
elgatovital authored Sep 7, 2023
1 parent 6e2e218 commit 4d77e35
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ class TransactionListViewModel
is TxListEntry.Transaction -> {
// conflict is resolved if there is local tx with same nonce
// that was submitted for execution
if (txLocal?.safeTxNonce == txListEntry.transaction.executionInfo?.nonce) {
if (txLocal != null && txLocal.safeTxNonce == txListEntry.transaction.executionInfo?.nonce) {
// use submittedAt timestamp to distinguish between conflicting transactions
if ((txLocal?.submittedAt == null || txLocal?.submittedAt == txListEntry.transaction.timestamp.time) && txListEntry.transaction.txStatus == TransactionStatus.AWAITING_EXECUTION) {
if (txLocal.submittedAt == txListEntry.transaction.timestamp.time && txListEntry.transaction.txStatus == TransactionStatus.AWAITING_EXECUTION) {
val tx = txListEntry.transaction.copy(txStatus = TransactionStatus.PENDING)
getTransactionView(
chain = safe.chain,
Expand Down

0 comments on commit 4d77e35

Please sign in to comment.