From 2917e4dd167c795567b64daf823566416e628e84 Mon Sep 17 00:00:00 2001 From: OKendigelyan Date: Fri, 20 Sep 2024 16:01:05 +0100 Subject: [PATCH] Remove multisig accounts from recipients list (#1920) --- .../AddressAutocomplete/KnownAccountsAutocomplete.tsx | 4 ++-- apps/web/src/components/Header/Header.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/src/components/AddressAutocomplete/KnownAccountsAutocomplete.tsx b/apps/web/src/components/AddressAutocomplete/KnownAccountsAutocomplete.tsx index e8dab56f74..8848b1ca26 100644 --- a/apps/web/src/components/AddressAutocomplete/KnownAccountsAutocomplete.tsx +++ b/apps/web/src/components/AddressAutocomplete/KnownAccountsAutocomplete.tsx @@ -1,4 +1,4 @@ -import { useAllAccounts, useContactsForSelectedNetwork } from "@umami/state"; +import { useContactsForSelectedNetwork, useImplicitAccounts } from "@umami/state"; import { type FieldValues, type Path } from "react-hook-form"; import { AddressAutocomplete } from "./AddressAutocomplete"; @@ -9,7 +9,7 @@ export const KnownAccountsAutocomplete = { const contacts = useContactsForSelectedNetwork(); - const accounts = useAllAccounts().map(account => ({ + const accounts = useImplicitAccounts().map(account => ({ name: account.label, pkh: account.address.pkh, })); diff --git a/apps/web/src/components/Header/Header.tsx b/apps/web/src/components/Header/Header.tsx index dc61e205fd..9642378041 100644 --- a/apps/web/src/components/Header/Header.tsx +++ b/apps/web/src/components/Header/Header.tsx @@ -60,7 +60,7 @@ export const Header = () => { }} > {mode(, )(colorMode)} - +