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:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user