Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Dec 3, 2024
1 parent b238282 commit f0a3370
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hooks/useIsOfficialHost.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useMemo } from "react"
import { OFFICIAL_HOSTS } from "@/config/constants"
import { useMemo } from 'react'
import { OFFICIAL_HOSTS } from '@/config/constants'

export const useIsOfficialHost = (): boolean => {
return useMemo(() => typeof window === 'undefined' ? true : OFFICIAL_HOSTS.test(window.location.host), [])
return useMemo(() => (typeof window === 'undefined' ? true : OFFICIAL_HOSTS.test(window.location.host)), [])
}

0 comments on commit f0a3370

Please sign in to comment.