aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/payments.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/payments.ts b/lib/payments.ts
index bc19dae9..e3a2e0de 100644
--- a/lib/payments.ts
+++ b/lib/payments.ts
@@ -120,7 +120,7 @@ export const debit = async ({
: 0;
if (aid && aid !== uid) ourfee = 0;
- const frozenBalance = whitelisted ? 0 : await ga(`balance:${uid}`);
+ const frozenBalance = (!blacklisted || whitelisted) ? 0 : await ga(`balance:${uid}`);
ourfee = await db.debit(
`balance:${aid || uid}`,