diff --git a/src/repos/website-types.d.ts b/src/repos/website-types.d.ts index 1168b03..2e19f10 100644 --- a/src/repos/website-types.d.ts +++ b/src/repos/website-types.d.ts @@ -58,6 +58,7 @@ export type AirtablePhoto = { export type WebsiteSponsor = { id: string; + name: string; url: string; image: string; copy: string; diff --git a/src/sponsors.ts b/src/sponsors.ts index 7dd1769..b2ee5ac 100644 --- a/src/sponsors.ts +++ b/src/sponsors.ts @@ -62,9 +62,11 @@ const makeWebsiteSponsor = ( sponsor: WebsiteSponsor; logo: AirtablePhoto; } => { - const name = normalizeSponsorName(airtableSponsor.get("Name") as string); + const airtableName = airtableSponsor.get("Name") as string + const name = normalizeSponsorName(airtableName); const sponsor = {} as WebsiteSponsor; sponsor.id = name; + sponsor.name = airtableName; sponsor.url = airtableSponsor.get("Website") as string; sponsor.copy = airtableSponsor.get("Web Copy") as string; const logoObj = airtableSponsor.get("Logo");