Default has created one to prevent flash

This commit is contained in:
Ian Philips 2022-04-28 19:39:55 -06:00
parent 9e275a18f1
commit 760681f958

View File

@ -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.