Skip to content

Commit

Permalink
Fix amount, remove mentions to faucet
Browse files Browse the repository at this point in the history
  • Loading branch information
af-afk committed Dec 13, 2024
1 parent 441eaed commit 4d45655
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions web/src/components/donationLevel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function DonationLevel() {
const donationClicks = useUserStore((s) => s.donationClicks);
const donationQueue = useUserStore((s) => s.donationQueue);
const curr = donationQueue[0];
const totalDonation = donationClicks * 0.005;
const totalDonation = donationClicks * 0.0005;

useEffect(() => {
if (curr?.id && account) {
Expand All @@ -40,7 +40,7 @@ export default function DonationLevel() {
{item.status === "error" ? (
<div className="size-5">✖️</div>
) : null}
{item.donation * 0.005}
{item.donation * 0.0005}
<Image
src={
item.status === "loading"
Expand Down
2 changes: 0 additions & 2 deletions web/src/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import LogoIcon from "#/images/logo-icon.svg";
import Image from "next/image";
import Link from "next/link";
import ConnectButton from "@/components/buttons/connectButton";
import FaucetButton from "./buttons/faucetButton";
export default function Header() {
return (
<div className="mb-[15px] flex h-8 items-center justify-between px-4 md:h-[50px] md:px-0">
Expand Down Expand Up @@ -38,7 +37,6 @@ export default function Header() {
</Link>
</div>
<div className="flex h-[50px] items-center justify-between gap-1 md:gap-2">
<FaucetButton />
<ConnectButton />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const config = {
web3: {
all: true,
donation: {
clickUnit: 0.005,
clickUnit: 0.0005,
debounceTime: 800,
},
},
Expand Down
2 changes: 1 addition & 1 deletion web/src/stores/userStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function handleErrorMessage(error: unknown) {
const errorMessage = (error as { message: string }).message;

if (errorMessage.includes("insufficient funds")) {
return "Insufficient funds, go to faucet";
return "Insufficient funds, add ETH";
} else if (errorMessage) {
return errorMessage;
} else {
Expand Down

0 comments on commit 4d45655

Please sign in to comment.