From 5aec744dc98bb73e3d2cf8a2d9d4862269efc195 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 20 Oct 2024 18:40:39 +0000 Subject: move variable declaration --- lib/payments.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/payments.ts b/lib/payments.ts index b01c926c..cb66bd48 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -235,8 +235,8 @@ export let credit = async ({ export let completePayment = async (inv, p, user) => { let { id, autowithdraw, threshold, reserve, destination, username } = user; + let withdrawal; if (p.confirmed) { - let withdrawal; if (autowithdraw) { try { let to = destination.trim(); -- cgit v1.2.3