empty address from ghost connect fixed
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
8ac1d9a2e9
commit
a911859841
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ghost-dao-interface",
|
"name": "ghost-dao-interface",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.7.57",
|
"version": "0.7.58",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@ -34,8 +34,8 @@ export const UnstableProviderProvider = ({ children }) => {
|
|||||||
)
|
)
|
||||||
|
|
||||||
const account = useMemo(() => {
|
const account = useMemo(() => {
|
||||||
if (Array.isArray(accounts)) return accounts.at(0).address;
|
if (Array.isArray(accounts)) return accounts?.at(0)?.address;
|
||||||
if (typeof accounts === 'string') return accounts.address;
|
if (typeof accounts === 'string') return accounts?.address;
|
||||||
return undefined
|
return undefined
|
||||||
}, [accounts])
|
}, [accounts])
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user