Skip to content

Commit

Permalink
feat: update self-funded to be prefilled with total cost
Browse files Browse the repository at this point in the history
  • Loading branch information
madhurMongia committed Jan 15, 2025
1 parent a712a74 commit b13f100
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/[pohid]/claim/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -78,7 +79,7 @@ export default withClientConnected<FormProps & JSX.IntrinsicAttributes>(
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();
Expand Down

0 comments on commit b13f100

Please sign in to comment.