From 8d85426f0e0ceec5297f43f5688d0d9bc4aa4a71 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Fri, 26 May 2023 17:09:47 -0300
Subject: remove account when no password

---
 packages/exchange-backoffice-ui/src/pages/HandleAccountNotReady.tsx | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'packages/exchange-backoffice-ui/src/pages/HandleAccountNotReady.tsx')

diff --git a/packages/exchange-backoffice-ui/src/pages/HandleAccountNotReady.tsx b/packages/exchange-backoffice-ui/src/pages/HandleAccountNotReady.tsx
index b0c430875..05fd0a019 100644
--- a/packages/exchange-backoffice-ui/src/pages/HandleAccountNotReady.tsx
+++ b/packages/exchange-backoffice-ui/src/pages/HandleAccountNotReady.tsx
@@ -21,6 +21,9 @@ export function HandleAccountNotReady({
   if (officer.state === "locked") {
     return (
       <UnlockAccount
+        onRemoveAccount={() => {
+          officer.forget();
+        }}
         onAccountUnlocked={(pwd) => {
           officer.tryUnlock(pwd);
         }}
-- 
cgit v1.2.3

