Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
MaGOs92 committed Dec 8, 2023
1 parent 6db416b commit 540d6c5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hooks/bal-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import {useEffect, useRef} from 'react'

const BAL_WIDGET_URL = process.env.NEXT_PUBLIC_BAL_WIDGET_URL

export function useBALWidget(config) {
const router = useRouter()
export function useBALWidget() {
const balWidgetRootElement = useRef(null)

Check failure on line 6 in hooks/bal-widget.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Expected indentation of 2 spaces but found 4.

useEffect(() => {

Check failure on line 8 in hooks/bal-widget.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Expected indentation of 2 spaces but found 4.
Expand All @@ -20,5 +19,5 @@ export function useBALWidget(config) {
return () => {
document.body.removeChild(script)
}
}, [config])
}, [])
}

0 comments on commit 540d6c5

Please sign in to comment.