Skip to content

Commit

Permalink
syndicate client
Browse files Browse the repository at this point in the history
  • Loading branch information
jawndiego committed Jun 17, 2024
1 parent e66f133 commit c12cb45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/site/config/syndicateClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,13 @@ export const generateIdRegistryInput = (register: Register) => ({
const apiKey = process.env.SYNDICATE_API_KEY

export const syndicateClient =
!projectIdRegistry || projectIdPost || !apiKey
!projectIdRegistry || !projectIdPost || !apiKey
? null
: {
officialActions: new SyndicateClient({
token: () => apiKey,
token: () => apiKey
}),
projectId: projectIdPost! || projectIdRegistry!,
generatePostTxnInput,
generatePostBatchTxnInput,
generateIdRegistryInput,
Expand Down

0 comments on commit c12cb45

Please sign in to comment.