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 b7f259b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/config/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const DISCORD_URL = 'https://chat.safe.global'
export const TWITTER_URL = 'https://twitter.com/safe'

// Legal
export const OFFICIAL_HOSTS = /(app\.safe\.global|.+\.5afe\.dev|localhost:3000)\//
export const OFFICIAL_HOSTS = /app\.safe\.global|.+\.5afe\.dev|localhost:3000/

// Risk mitigation (Blockaid)
export const BLOCKAID_API = 'https://client.blockaid.io'
Expand Down
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 b7f259b

Please sign in to comment.