added await for callback to getPrimaryNames

This commit is contained in:
MergeMerc
2025-06-03 09:18:01 -04:00
parent 19b72c312b
commit ad640bcf6a

View File

@@ -101,7 +101,7 @@ const GlobalWrapper: React.FC<Props> = ({ children, setTheme }) => {
action: "GET_USER_ACCOUNT",
});
const name = getPrimaryAccountName(account.address);
const name = await getPrimaryAccountName(account.address);
dispatch(addUser({ ...account, name }));
} catch (error) {
console.error(error);