Skip to content

Commit

Permalink
add error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
yuetloo committed Jul 11, 2024
1 parent a84db65 commit 6e94ec6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vue-app/src/api/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export interface Project {
export async function getRecipientRegistryAddress(roundAddress: string | null): Promise<string> {
if (roundAddress !== null) {
const fundingRound = new Contract(roundAddress, FundingRound, provider)
return await fundingRound.recipientRegistry()
return await fundingRound.recipientRegistry().catch(() => null)
} else {
return await clrFundContract.recipientRegistry()
return await clrFundContract.recipientRegistry().catch(() => null)
}
}

Expand Down

0 comments on commit 6e94ec6

Please sign in to comment.