diff --git a/app/src/config/bazaar.ts b/app/src/config/bazaar.ts index dd4cd7880..5f3bf4d9f 100644 --- a/app/src/config/bazaar.ts +++ b/app/src/config/bazaar.ts @@ -172,7 +172,13 @@ export const bazaar = { repoHash: item.repoHash, downloaded: false, }; - const fundingKey = item.fundingUrl ? Object.keys(item.fundingUrl)[0] : ""; + let fundingUrl = ""; + if (item.fundingUrl) { + fundingUrl = item.fundingUrl.openCollective || item.fundingUrl.patreon || item.fundingUrl.github + if (!fundingUrl && item.fundingUrl.custom && item.fundingUrl.custom.length > 0) { + fundingUrl = item.fundingUrl.custom[0]; + } + } return `