diff --git a/src/context/NameInAddressBookContext.tsx b/src/context/NameInAddressBookContext.tsx index 29665e9..ce50055 100644 --- a/src/context/NameInAddressBookContext.tsx +++ b/src/context/NameInAddressBookContext.tsx @@ -100,12 +100,20 @@ export const NameInAddressBookProvider: React.FC = ({ _name = findInAddressBook(address); } else if (isSigner) { _name = isSigner.name; + } else if (xSignerSelected?.address === address) { + _name = xSignerSelected.name; } setIsLoading(false); return _name; }, - [accountConnected?.address, findInAddressBook, xSignerSelected?.owners] + [ + accountConnected?.address, + findInAddressBook, + xSignerSelected?.address, + xSignerSelected?.name, + xSignerSelected?.owners, + ] ); return (