Skip to content

Commit

Permalink
fix: aothorization field only show when search is made (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi-bams authored Oct 23, 2023
1 parent 81ad40b commit d702585
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions src/components/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
4 changes: 0 additions & 4 deletions src/utils/setBudget/index.ts
Original file line number Diff line number Diff line change
@@ -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()
Expand Down

0 comments on commit d702585

Please sign in to comment.