Skip to content

Commit

Permalink
hotfix: partners type is_main에서 isMain으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
frombozztoang committed Dec 10, 2024
1 parent 3a035c2 commit 5b3f682
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/loaders/aboutPageLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const defaultCorpData: ICorpInfoData[] = [
{
partnerInfo: {
id: 1,
is_main: true,
isMain: true,
link: 'https://www.netflix.com/browse',
},
logoImg: LocomoLogo,
Expand Down
4 changes: 1 addition & 3 deletions src/pages/PromotionPage/AboutPage/AboutPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ const AboutPage = () => {
window.location.reload();
};

const mainPartnersData = partnersData.filter((info) => {
return info.partnerInfo.is_main;
});
const mainPartnersData = partnersData.filter((info) => info.partnerInfo && info.partnerInfo.isMain);

return (
<ScrollContainer>
Expand Down
2 changes: 1 addition & 1 deletion src/types/PromotionPage/about.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { AxiosError } from 'axios';

export interface IPartnerInfo {
id: number;
is_main: boolean;
isMain: boolean;
link: string;
}

Expand Down

0 comments on commit 5b3f682

Please sign in to comment.