Skip to content

Commit e5b63c7

Browse files
committed
sorry
1 parent 248ca0b commit e5b63c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/components/ProjectFTUX/ProjectWalletControls.client.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,12 @@ function SendProjectWalletModal(props: {
293293

294294
const selectedChain = useV5DashboardChain(form.watch("chainId"));
295295

296+
// eslint-disable-next-line no-restricted-syntax -- form submission chainId must track selector state
296297
useEffect(() => {
297298
form.setValue("chainId", chainId);
298299
}, [chainId, form]);
299300

301+
// eslint-disable-next-line no-restricted-syntax -- reset cached inputs when modal closes to avoid leaking state
300302
useEffect(() => {
301303
if (!open) {
302304
const currentValues = form.getValues();
@@ -310,6 +312,7 @@ function SendProjectWalletModal(props: {
310312
}
311313
}, [open, chainId, form]);
312314

315+
// eslint-disable-next-line no-restricted-syntax -- restoring credentials from localStorage requires side effects
313316
useEffect(() => {
314317
if (!open || typeof window === "undefined") {
315318
return;
@@ -344,6 +347,7 @@ function SendProjectWalletModal(props: {
344347
}
345348
}, [open, credentialStorageKey, form, isManagedVault]);
346349

350+
// eslint-disable-next-line no-restricted-syntax -- persist credential updates while modal is open
347351
useEffect(() => {
348352
if (typeof window === "undefined") {
349353
return;

0 commit comments

Comments
 (0)