iter 2
This commit is contained in:
@@ -16,7 +16,7 @@ const PING_INTERVAL_MS = 5000
|
||||
export const UnderMaintenancePage: FunctionComponent<IUnderMaintenancePageProps> = (): JSX.Element => {
|
||||
const router = useRouter()
|
||||
const searchParams = useSearchParams()
|
||||
const redirectPath = searchParams.get("path") || "/"
|
||||
const redirectPath = searchParams?.get("path") || "/"
|
||||
|
||||
const { isSuccess } = api.useQuery("get", "/api/ping/", {}, {
|
||||
refetchInterval: PING_INTERVAL_MS,
|
||||
|
||||
Reference in New Issue
Block a user