accout dash API fix

This commit is contained in:
victorAnumudu
2024-12-11 20:47:25 +01:00
parent ccebcb04ee
commit b3dab25fa9
3 changed files with 10 additions and 6 deletions
+1 -3
View File
@@ -10,11 +10,9 @@ export default function HomeSections(){
const {data:dashData, isFetching, isError} = useQuery({
queryKey: queryKeys.dashboard,
queryFn: accountDashboard()
queryFn: async () => await accountDashboard()
})
console.log('DASH', dashData)
if(isFetching){
return(
<>