From 5fb0d9919b90b70a3b7c5e27a5e278cbfff6ca51 Mon Sep 17 00:00:00 2001 From: Qortal Seth Date: Tue, 8 Jul 2025 12:01:16 -0600 Subject: [PATCH] Primary Name is used when publishing. --- src/wrappers/GlobalWrapper.tsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/wrappers/GlobalWrapper.tsx b/src/wrappers/GlobalWrapper.tsx index ca8da7f..5129ac7 100644 --- a/src/wrappers/GlobalWrapper.tsx +++ b/src/wrappers/GlobalWrapper.tsx @@ -75,17 +75,10 @@ const GlobalWrapper: React.FC = ({ children, setTheme }) => { const { isLoadingGlobal } = useSelector((state: RootState) => state.global); async function getNameInfo(address: string) { - const response = await qortalRequest({ - action: "GET_ACCOUNT_NAMES", + return await qortalRequest({ + action: "GET_PRIMARY_NAME", address: address, }); - const nameData = response; - - if (nameData?.length > 0) { - return nameData[0].name; - } else { - return ""; - } } const askForAccountInformation = React.useCallback(async () => {