mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-28 17:50:28 +08:00
Refactor project reactivity
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
+2
-2
@@ -131,7 +131,7 @@ export function formatCommit(oid: string): string {
|
||||
return oid.substring(0, 7);
|
||||
}
|
||||
|
||||
export function formatOrg(input: string, config: Config): string {
|
||||
export function formatProfile(input: string, config: Config): string {
|
||||
if (isAddress(input)) {
|
||||
return ethers.utils.getAddress(input);
|
||||
} else {
|
||||
@@ -397,7 +397,7 @@ export async function getSafe(address: string, config: Config): Promise<Safe | n
|
||||
// For the subgraph we need to pass a lowercase address
|
||||
const query = await querySubgraph(config.orgs.subgraph, GetSafe, { addr: address.toLowerCase() });
|
||||
|
||||
if (! query.safe) {
|
||||
if (! query?.safe) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user