Properly handle null id

This commit is contained in:
Ian Philips 2022-10-03 09:57:27 -06:00
parent adb8bc476f
commit d5d1284306

View File

@ -42,7 +42,7 @@ export function ContractInfoDialog(props: {
const isUnlisted = contract.visibility === 'unlisted' const isUnlisted = contract.visibility === 'unlisted'
const wasUnlistedByCreator = contract.unlistedById const wasUnlistedByCreator = contract.unlistedById
? contract.unlistedById === contract.creatorId ? contract.unlistedById === contract.creatorId
: true : false
const formatTime = (dt: number) => dayjs(dt).format('MMM DD, YYYY hh:mm a') const formatTime = (dt: number) => dayjs(dt).format('MMM DD, YYYY hh:mm a')