From 0bf92a44df14f1946df2b1cd58a6b0b92b5befa2 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Wed, 15 Mar 2023 09:25:23 -0300
Subject: test login with an endpoint and cleaner calculation

---
 packages/demobank-ui/src/pages/AdminPage.tsx | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'packages/demobank-ui/src/pages/AdminPage.tsx')

diff --git a/packages/demobank-ui/src/pages/AdminPage.tsx b/packages/demobank-ui/src/pages/AdminPage.tsx
index f565455bb..ac0457e9b 100644
--- a/packages/demobank-ui/src/pages/AdminPage.tsx
+++ b/packages/demobank-ui/src/pages/AdminPage.tsx
@@ -36,9 +36,9 @@ import {
 } from "../context/pageState.js";
 import { useAccountDetails } from "../hooks/access.js";
 import {
+  useAdminAccountAPI,
   useBusinessAccountDetails,
   useBusinessAccounts,
-  useAdminAccountAPI,
 } from "../hooks/circuit.js";
 import {
   buildRequestErrorMessage,
@@ -50,7 +50,6 @@ import {
 } from "../utils.js";
 import { ErrorBannerFloat } from "./BankFrame.js";
 import { ShowCashoutDetails } from "./BusinessAccount.js";
-import { PaymentOptions } from "./PaymentOptions.js";
 import { PaytoWireTransferForm } from "./PaytoWireTransferForm.js";
 import { ShowInputErrorLabel } from "./ShowInputErrorLabel.js";
 
@@ -581,7 +580,6 @@ function CreateNewAccount({
           template={undefined}
           purpose="create"
           onChange={(a) => {
-            console.log(a);
             setSubmitAccount(a);
           }}
         />
@@ -831,6 +829,7 @@ function RemoveAccount({
             title: i18n.str`Can't delete the account`,
             description: i18n.str`Balance is not empty`,
           }}
+          onClear={() => saveError(undefined)}
         />
       )}
       {error && (
-- 
cgit v1.2.3

