Stop load on fail create market, improve warning

This commit is contained in:
Sinclair Chen 2022-07-06 15:58:22 -07:00
parent f354c9e118
commit 5fa2925ba8

View File

@ -227,7 +227,8 @@ export function NewContract(props: {
await router.push(contractPath(result as Contract)) await router.push(contractPath(result as Contract))
} catch (e) { } catch (e) {
console.log('error creating contract', e) console.error('error creating contract', e, (e as any).details)
setIsSubmitting(false)
} }
} }