Skip to content

Commit

Permalink
Merge pull request #14 from FX-Wood/fxwood/add-sponsor-name
Browse files Browse the repository at this point in the history
Add sponsor name
  • Loading branch information
FX-Wood authored Nov 13, 2023
2 parents d9078c6 + 2b20e4f commit 8d02052
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 8d02052

Please sign in to comment.