refactor userData query

This commit is contained in:
smanylov
2026-02-13 13:44:03 +07:00
parent edc6e56c69
commit 1f6301c531
11 changed files with 124 additions and 144 deletions
@@ -43,7 +43,7 @@ export const useUserFilesInfo = () => {
return useQuery({
queryKey: ['userFilesInfo'],
queryFn: getUserFilesInfo,
select: (data): FilesInfo => {
select: (data): FilesInfo | null => {
if (!data) {
return {
total: { size: 0, quantity: 0, check: 0, violation: 0, protected: 0 },