mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
Fix isSafe util function
We were calling `return query?.safe !== null ? true : false` but since
`query` can become `undefined` through the optional chaining operator,
we were returning `true` if the query wasn't able to retrieve
anything.
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
+1
-1
@@ -592,7 +592,7 @@ export async function isSafe(
|
||||
addr: address.toLowerCase(),
|
||||
});
|
||||
|
||||
return query?.safe !== null ? true : false;
|
||||
return Boolean(query?.safe);
|
||||
}
|
||||
|
||||
// Get a Gnosis Safe at an address.
|
||||
|
||||
Reference in New Issue
Block a user