Rehydrate proposal detail page milestones.

This commit is contained in:
Will O'Beirne 2019-03-18 12:43:30 -04:00
parent ba704f5f5c
commit 2eff058add
No known key found for this signature in database
GPG Key ID: 44C190DB5DEAF9F6
1 changed files with 4 additions and 0 deletions

View File

@ -149,6 +149,10 @@ export function massageSerializedState(state: AppState) {
);
state.proposal.detail.contributionBounty = new BN((state.proposal.detail
.contributionBounty as any) as string);
state.proposal.detail.milestones = state.proposal.detail.milestones.map(m => ({
...m,
amount: new BN((m.amount as any) as string, 16),
}));
if (state.proposal.detail.rfp && state.proposal.detail.rfp.bounty) {
state.proposal.detail.rfp.bounty = new BN(
(state.proposal.detail.rfp.bounty as any) as string,