({
shouldEvaluate = true,
}: {
shouldEvaluate?: boolean;
} = {})
| 1 | import { useQuestDashboard } from './useQuestDashboard'; |
| 2 | |
| 3 | export const useHasIntroQuests = ({ |
| 4 | shouldEvaluate = true, |
| 5 | }: { |
| 6 | shouldEvaluate?: boolean; |
| 7 | } = {}): boolean => { |
| 8 | const { data } = useQuestDashboard({ enabled: shouldEvaluate }); |
| 9 | |
| 10 | return shouldEvaluate && (data?.intro?.length ?? 0) > 0; |
| 11 | }; |
no test coverage detected