Include groupId when duplicating markets
This commit is contained in:
parent
ada3f0787c
commit
693eb96d23
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user