diff --git a/src/Screens/ProjectScreen.js b/src/Screens/ProjectScreen.js index 830f629..4e91644 100644 --- a/src/Screens/ProjectScreen.js +++ b/src/Screens/ProjectScreen.js @@ -24,7 +24,7 @@ const defaultProject = { }; const projectHeader = { manager: "Address of Manager", - balance: "Balance", + balance: "Balance(in Wei)", category: "Category", targetAmount: "Target Amount(in Wei)", minimumContribution: "Minimum Contribution(in Wei)", @@ -130,18 +130,18 @@ const ProjectScreen = () => { setCurrentProject({ manager, - balance: balance + " Wei", + balance: fromBigIntToNumber(balance), title, description, category, - targetAmount, - minimumContribution, - backersCount, + targetAmount: fromBigIntToNumber(targetAmount), + minimumContribution: fromBigIntToNumber(minimumContribution), + backersCount: fromBigIntToNumber(backersCount), targetDate, imageLink, - fundingReceived, - pendingRequests, - totalRequests, + fundingReceived: fromBigIntToNumber(fundingReceived), + pendingRequests: fromBigIntToNumber(pendingRequests), + totalRequests: fromBigIntToNumber(totalRequests), }); setIsLoading(0); diff --git a/src/Screens/RequestScreen.js b/src/Screens/RequestScreen.js index d1d7814..d83d576 100644 --- a/src/Screens/RequestScreen.js +++ b/src/Screens/RequestScreen.js @@ -61,7 +61,7 @@ const RequestScreen = () => { newRequests.push({ id: i + 1, description: currentRequest["description"], - amount: currentRequest["amount"], + amount: fromBigIntToNumber(currentRequest["amount"]), recipient: currentRequest["recipient"], approvalCount: currentRequest["approvalCount"], backersCount: backersCount,