Skip to content

Commit e960d77

Browse files
committed
fix: lint
1 parent 1afb702 commit e960d77

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/apps/review/src/lib/hooks/useFetchScorecard.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import { toast } from 'react-toastify'
12
import useSWR, { SWRResponse } from 'swr'
23

34
import { EnvironmentConfig } from '~/config'
45
import { xhrGetAsync } from '~/libs/core'
56

67
import { Scorecard } from '../models'
7-
import { toast } from 'react-toastify'
88

99
const baseUrl = `${EnvironmentConfig.API.V6}/review`
1010

@@ -23,10 +23,10 @@ export function useFetchScorecard(id: string | undefined): ScorecardResponse {
2323
id ? `${baseUrl}/scorecards/${id}` : null,
2424
fetcher,
2525
{
26-
onError: (err) => {
26+
onError: err => {
2727
toast.error(err.message)
28-
}
29-
}
28+
},
29+
},
3030
)
3131

3232
return {

0 commit comments

Comments
 (0)