diff --git a/bun.lockb b/bun.lockb index 0f625ed..13d6c3c 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/src/components/app/faucet-form.tsx b/src/components/app/faucet-form.tsx index 377733a..beef7f5 100644 --- a/src/components/app/faucet-form.tsx +++ b/src/components/app/faucet-form.tsx @@ -35,10 +35,14 @@ const formSchema = z.object({ }); export function FaucetForm() { + // get address from search param + const urlParams = new URLSearchParams(window.location.search); + const address = urlParams.get("address") || ""; + const form = useForm>({ resolver: zodResolver(formSchema), defaultValues: { - address: "", + address, choice: EChoices.ELF, }, });