Skip to content

Commit

Permalink
Hide Revolut transactions with zero amount
Browse files Browse the repository at this point in the history
  • Loading branch information
stonish authored and --global committed Jun 8, 2022
1 parent 05dffca commit 383e08d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transactions/revolutTransaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,5 @@ func (t revolutTransaction) Output() {
}

func (t revolutTransaction) shouldHide() bool {
return t.transactionType == "TOPUP" || t.state == "PENDING"
return t.amount == 0 || t.transactionType == "TOPUP" || t.state == "PENDING"
}

0 comments on commit 383e08d

Please sign in to comment.