Include groupId when duplicating markets

This commit is contained in:
Austin Chen 2022-07-27 19:47:25 -07:00
parent ada3f0787c
commit 693eb96d23

View File

@ -49,6 +49,10 @@ function duplicateContractHref(contract: Contract) {
params.initValue = getMappedValue(contract)(contract.initialProbability)
}
if (contract.groupLinks && contract.groupLinks.length > 0) {
params.groupId = contract.groupLinks[0].groupId
}
return (
`/create?` +
Object.entries(params)