fix(2590): download JSON for some proposal types not working if proposal terms is empty (#2591)
This commit is contained in:
parent
2689bbdcd2
commit
38ff2c24e4
@ -95,9 +95,9 @@ export const ProposeNewAsset = () => {
|
|||||||
description: fields.proposalDescription,
|
description: fields.proposalDescription,
|
||||||
},
|
},
|
||||||
terms: {
|
terms: {
|
||||||
newAsset: {
|
newAsset: fields.proposalTerms
|
||||||
...JSON.parse(fields.proposalTerms),
|
? { ...JSON.parse(fields.proposalTerms) }
|
||||||
},
|
: {},
|
||||||
closingTimestamp: getClosingTimestamp(
|
closingTimestamp: getClosingTimestamp(
|
||||||
fields.proposalVoteDeadline,
|
fields.proposalVoteDeadline,
|
||||||
isVoteDeadlineAtMinimum,
|
isVoteDeadlineAtMinimum,
|
||||||
|
@ -89,9 +89,9 @@ export const ProposeNewMarket = () => {
|
|||||||
description: fields.proposalDescription,
|
description: fields.proposalDescription,
|
||||||
},
|
},
|
||||||
terms: {
|
terms: {
|
||||||
newMarket: {
|
newMarket: fields.proposalTerms
|
||||||
...JSON.parse(fields.proposalTerms),
|
? { ...JSON.parse(fields.proposalTerms) }
|
||||||
},
|
: {},
|
||||||
closingTimestamp: getClosingTimestamp(
|
closingTimestamp: getClosingTimestamp(
|
||||||
fields.proposalVoteDeadline,
|
fields.proposalVoteDeadline,
|
||||||
isVoteDeadlineAtMinimum,
|
isVoteDeadlineAtMinimum,
|
||||||
|
@ -89,9 +89,9 @@ export const ProposeUpdateAsset = () => {
|
|||||||
description: fields.proposalDescription,
|
description: fields.proposalDescription,
|
||||||
},
|
},
|
||||||
terms: {
|
terms: {
|
||||||
updateAsset: {
|
updateAsset: fields.proposalTerms
|
||||||
...JSON.parse(fields.proposalTerms),
|
? { ...JSON.parse(fields.proposalTerms) }
|
||||||
},
|
: {},
|
||||||
closingTimestamp: getClosingTimestamp(
|
closingTimestamp: getClosingTimestamp(
|
||||||
fields.proposalVoteDeadline,
|
fields.proposalVoteDeadline,
|
||||||
isVoteDeadlineAtMinimum,
|
isVoteDeadlineAtMinimum,
|
||||||
|
@ -132,9 +132,9 @@ export const ProposeUpdateMarket = () => {
|
|||||||
terms: {
|
terms: {
|
||||||
updateMarket: {
|
updateMarket: {
|
||||||
marketId: fields.proposalMarketId,
|
marketId: fields.proposalMarketId,
|
||||||
changes: {
|
changes: fields.proposalTerms
|
||||||
...JSON.parse(fields.proposalTerms),
|
? { ...JSON.parse(fields.proposalTerms) }
|
||||||
},
|
: {},
|
||||||
},
|
},
|
||||||
closingTimestamp: getClosingTimestamp(
|
closingTimestamp: getClosingTimestamp(
|
||||||
fields.proposalVoteDeadline,
|
fields.proposalVoteDeadline,
|
||||||
|
Loading…
Reference in New Issue
Block a user