From 760681f95844e26630972329831c060d1d4a5413 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Thu, 28 Apr 2022 19:39:55 -0600 Subject: [PATCH] Default has created one to prevent flash --- web/hooks/use-has-created-contract-today.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/hooks/use-has-created-contract-today.ts b/web/hooks/use-has-created-contract-today.ts index 3e9d6efe..43fe42f9 100644 --- a/web/hooks/use-has-created-contract-today.ts +++ b/web/hooks/use-has-created-contract-today.ts @@ -3,7 +3,7 @@ import { useEffect, useState } from 'react' import { User } from '../../common/user' export const useHasCreatedContractToday = (user: User | null | undefined) => { - const [hasCreatedContractToday, setHasCreatedContractToday] = useState(false) + const [hasCreatedContractToday, setHasCreatedContractToday] = useState(true) useEffect(() => { // Uses utc time like the server.