From 2eff058add540a3d98842a397b63d57c03fcdc77 Mon Sep 17 00:00:00 2001 From: Will O'Beirne Date: Mon, 18 Mar 2019 12:43:30 -0400 Subject: [PATCH] Rehydrate proposal detail page milestones. --- frontend/client/utils/api.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/client/utils/api.ts b/frontend/client/utils/api.ts index 0d0f4a89..984d1ffa 100644 --- a/frontend/client/utils/api.ts +++ b/frontend/client/utils/api.ts @@ -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,