From 6b23c284e5c72bf7f1e517b31a3cb46fa256b1cd Mon Sep 17 00:00:00 2001
From: alfred-mk <alfredmwaik@gmail.com>
Date: Sat, 30 Nov 2024 15:24:14 +0300
Subject: [PATCH] check vouchers before checking the balance

---
 services/registration/main.vis | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/services/registration/main.vis b/services/registration/main.vis
index 7e1c9bf..beb2d7c 100644
--- a/services/registration/main.vis
+++ b/services/registration/main.vis
@@ -1,10 +1,10 @@
 LOAD set_default_voucher 8
 RELOAD set_default_voucher
-LOAD check_balance 64
-RELOAD check_balance
 LOAD check_vouchers 10
 RELOAD check_vouchers
-CATCH api_failure  flag_api_call_error  1
+LOAD check_balance 64
+RELOAD check_balance
+CATCH api_failure flag_api_call_error  1
 MAP check_balance
 MOUT send 1
 MOUT vouchers 2