From 383e08d7daa44ecf9abf2f4becf916ea1b8e228b Mon Sep 17 00:00:00 2001 From: Shane Huston Date: Wed, 8 Jun 2022 12:37:51 +0100 Subject: [PATCH] Hide Revolut transactions with zero amount --- transactions/revolutTransaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transactions/revolutTransaction.go b/transactions/revolutTransaction.go index cbd2694..2833a03 100644 --- a/transactions/revolutTransaction.go +++ b/transactions/revolutTransaction.go @@ -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" }