From 750d6a31ebe48ab2592ee262f00c5660729aad5d Mon Sep 17 00:00:00 2001
From: "m.ray" <16125548+MadalinaRaicu@users.noreply.github.com>
Date: Fri, 4 Nov 2022 10:42:37 +0000
Subject: [PATCH] fix: #1639 use connected button to populate eth address in
withdrawal dialog (#1954)
---
libs/withdraws/src/lib/withdraw-form.tsx | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/libs/withdraws/src/lib/withdraw-form.tsx b/libs/withdraws/src/lib/withdraw-form.tsx
index 579800960..1ad33befc 100644
--- a/libs/withdraws/src/lib/withdraw-form.tsx
+++ b/libs/withdraws/src/lib/withdraw-form.tsx
@@ -133,6 +133,16 @@ export const WithdrawForm = ({
label={t('To (Ethereum address)')}
labelFor="ethereum-address"
>
+ {address && (
+ {
+ setValue('to', address);
+ clearErrors('to');
+ }}
+ >
+ {t('Use connected')}
+
+ )}