From d70258510b1e963d356b7748bf0397c4dd82b238 Mon Sep 17 00:00:00 2001 From: Bamidele Oluwatobi <56609046+tobi-bams@users.noreply.github.com> Date: Mon, 23 Oct 2023 16:14:14 +0100 Subject: [PATCH] fix: aothorization field only show when search is made (#514) --- src/components/App/index.tsx | 6 ------ src/utils/setBudget/index.ts | 4 ---- 2 files changed, 10 deletions(-) diff --git a/src/components/App/index.tsx b/src/components/App/index.tsx index b06913f1f..c740c7c38 100644 --- a/src/components/App/index.tsx +++ b/src/components/App/index.tsx @@ -105,12 +105,6 @@ export const App = () => { await updateBudget(setBudget) } - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - await sphinx.enable() - - await updateBudget(setBudget) - setSphinxModalOpen(false) } diff --git a/src/utils/setBudget/index.ts b/src/utils/setBudget/index.ts index 4799f788b..557a21bbb 100644 --- a/src/utils/setBudget/index.ts +++ b/src/utils/setBudget/index.ts @@ -1,10 +1,6 @@ import * as sphinx from 'sphinx-bridge-kevkevinpal' export async function updateBudget(setBudget: (value: number | null) => void) { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - await sphinx.enable() - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore const budget = await sphinx.getBudget()