Skip to content

Commit

Permalink
Add sponsor name
Browse files Browse the repository at this point in the history
  • Loading branch information
FX-Wood committed Nov 11, 2023
1 parent dee27d0 commit 29bb07f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/repos/website-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export type AirtablePhoto = {

export type WebsiteSponsor = {
id: string;
name: string;
url: string;
image: string;
copy: string;
Expand Down
4 changes: 3 additions & 1 deletion src/sponsors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 29bb07f

Please sign in to comment.