From 7e90181b41960a3172ea4a786128df6fdad8cb8c Mon Sep 17 00:00:00 2001 From: Evan Kaloudis Date: Thu, 19 Dec 2024 16:24:57 -0500 Subject: [PATCH] ZEUS-2641: Activity: make send and receive inclusive of 0 --- utils/ActivityFilterUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/ActivityFilterUtils.ts b/utils/ActivityFilterUtils.ts index 854dde398..c7bd9ff1e 100644 --- a/utils/ActivityFilterUtils.ts +++ b/utils/ActivityFilterUtils.ts @@ -31,7 +31,7 @@ class ActivityFilterUtils { (activity) => !( (activity instanceof Transaction && - Number(activity.getAmount) < 0) || + Number(activity.getAmount) <= 0) || activity instanceof Payment ) ); @@ -42,7 +42,7 @@ class ActivityFilterUtils { (activity) => !( (activity instanceof Transaction && - Number(activity.getAmount) > 0) || + Number(activity.getAmount) >= 0) || (activity instanceof Invoice && activity.isPaid) ) );