From b13f100078cd55447936d17f0007be648991fc12 Mon Sep 17 00:00:00 2001 From: madhurMongia Date: Sun, 29 Dec 2024 23:57:47 +0530 Subject: [PATCH] feat: update self-funded to be prefilled with total cost --- src/app/[pohid]/claim/Form.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/[pohid]/claim/Form.tsx b/src/app/[pohid]/claim/Form.tsx index e09c498..d877dc2 100644 --- a/src/app/[pohid]/claim/Form.tsx +++ b/src/app/[pohid]/claim/Form.tsx @@ -29,6 +29,7 @@ import InfoStep from "./Info"; import PhotoStep from "./Photo"; import ReviewStep from "./Review"; import VideoStep from "./Video"; +import { formatEth } from "utils/misc"; enableReactUse(); @@ -78,7 +79,7 @@ export default withClientConnected( uri: "", }); const state = state$.use(); - const selfFunded$ = useObservable(0); + const selfFunded$ = useObservable(formatEth(totalCosts[chainId])); const selfFunded = selfFunded$.use(); const loading = useLoading(); const [, loadingMessage] = loading.use();