From 131ab8722dc226fb2ea811234ba9c941d33cfd42 Mon Sep 17 00:00:00 2001 From: Ratnesh Date: Mon, 30 Oct 2023 01:48:33 +0530 Subject: [PATCH] Third5 Deployment --- src/Screens/ProjectScreen.js | 16 ++++++++-------- src/Screens/RequestScreen.js | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) 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,