fix: move useQuery before early returns in DashboardLayout

The useQuery hook for unanswered ticket counts was called after
two conditional early returns (isLoading and not isAuthenticated),
violating React rules of hooks. Moved it before the returns
and added isAuthenticated to the enabled condition.
This commit is contained in:
keyhan
2026-04-08 13:13:20 +03:30
parent cb9320ee15
commit 2dd882bf34
2 changed files with 11 additions and 10 deletions
File diff suppressed because one or more lines are too long