Finish merge
This commit is contained in:
parent
4aa61faa19
commit
7e2722b966
|
@ -27,7 +27,6 @@ import { useTextEditor } from 'web/components/editor'
|
||||||
import { LoadingIndicator } from 'web/components/loading-indicator'
|
import { LoadingIndicator } from 'web/components/loading-indicator'
|
||||||
import { track } from 'web/lib/service/analytics'
|
import { track } from 'web/lib/service/analytics'
|
||||||
|
|
||||||
|
|
||||||
type challengeInfo = {
|
type challengeInfo = {
|
||||||
amount: number
|
amount: number
|
||||||
expiresTime: number | null
|
expiresTime: number | null
|
||||||
|
@ -79,14 +78,14 @@ export function CreateChallengeModal(props: {
|
||||||
outcome: newChallenge.outcome,
|
outcome: newChallenge.outcome,
|
||||||
contract: challengeContract as BinaryContract,
|
contract: challengeContract as BinaryContract,
|
||||||
})
|
})
|
||||||
if (challenge) {
|
if (challenge) {
|
||||||
setChallengeSlug(getChallengeUrl(challenge))
|
setChallengeSlug(getChallengeUrl(challenge))
|
||||||
track('challenge created', {
|
track('challenge created', {
|
||||||
creator: user.username,
|
creator: user.username,
|
||||||
amount: newChallenge.amount,
|
amount: newChallenge.amount,
|
||||||
contractId: contract.id,
|
contractId: challengeContract.id,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error("couldn't create market/challenge:", e)
|
console.error("couldn't create market/challenge:", e)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user