From 28c23208a411568997333f1f920cf7f605cd50bc Mon Sep 17 00:00:00 2001
From: "alexey.stratulat" <alexey.stratulat@demlabs.net>
Date: Sat, 6 Apr 2024 15:31:07 +0700
Subject: [PATCH] [*] Port: Fixed a bug that when deactivating a wallet, its
 status was displayed as active when using the wallet deactivate command.

---
 modules/net/dap_chain_node_cli_cmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/net/dap_chain_node_cli_cmd.c b/modules/net/dap_chain_node_cli_cmd.c
index 99919d86cd..8906c4d036 100644
--- a/modules/net/dap_chain_node_cli_cmd.c
+++ b/modules/net/dap_chain_node_cli_cmd.c
@@ -2038,7 +2038,7 @@ int l_arg_index = 1, l_rc, cmd_num = CMD_NONE;
                     switch (l_rc) {
                     case 0:
                         json_object_object_add(json_obj_wall, "Wallet name", json_object_new_string(l_wallet_name));
-                        json_object_object_add(json_obj_wall, "protection", CMD_WALLET_ACTIVATE ?
+                        json_object_object_add(json_obj_wall, "protection", cmd_num == CMD_WALLET_ACTIVATE ?
                         json_object_new_string("is activated") : json_object_new_string("is deactivated"));
                         break;
                     case -EBUSY:
-- 
GitLab