Default has created one to prevent flash
This commit is contained in:
parent
9e275a18f1
commit
760681f958
|
@ -3,7 +3,7 @@ import { useEffect, useState } from 'react'
|
||||||
import { User } from '../../common/user'
|
import { User } from '../../common/user'
|
||||||
|
|
||||||
export const useHasCreatedContractToday = (user: User | null | undefined) => {
|
export const useHasCreatedContractToday = (user: User | null | undefined) => {
|
||||||
const [hasCreatedContractToday, setHasCreatedContractToday] = useState(false)
|
const [hasCreatedContractToday, setHasCreatedContractToday] = useState(true)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// Uses utc time like the server.
|
// Uses utc time like the server.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user