Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dd587e8

Browse files
committed
simplify hook return
1 parent ade9548 commit dd587e8

File tree

1 file changed

+1
-5
lines changed
  • site/src/pages/UserSettingsPage/TokensPage

1 file changed

+1
-5
lines changed

site/src/pages/UserSettingsPage/TokensPage/hooks.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,10 @@ export const useCheckTokenPermissions = () => {
2323
},
2424
},
2525
}
26-
const result = useQuery({
26+
return useQuery({
2727
queryKey,
2828
queryFn: () => checkAuthorization(params),
2929
})
30-
31-
return {
32-
...result,
33-
}
3430
}
3531

3632
// Load all tokens

0 commit comments

Comments
 (0)