Merge pull request #234 from grant-project/handle-hydrated-rfp

Convert hydrated bounty to BN
This commit is contained in:
Daniel Ternyak 2019-02-19 14:42:23 -06:00 committed by GitHub
commit b94b8d475d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -145,6 +145,12 @@ export function massageSerializedState(state: AppState) {
(state.proposal.detail.funded 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,
16,
);
}
}
// proposals
state.proposal.page.items = state.proposal.page.items.map(p => ({