Skip to content

Commit

Permalink
Fix linter type unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
enejb committed May 17, 2024
1 parent 25ecb5e commit 63ba925
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/my-sites/site-settings/settings-newsletter/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type Fields = {
};

type NewsletterSettingsFormProps = {
siteId: number | null;
siteId: number;
settings: Fields;
isLoadingSettings: boolean;
isSavingSettings: boolean;
Expand Down Expand Up @@ -203,13 +203,13 @@ const NewsletterSettingsForm = withSiteSettings(

const NewsletterSettings = () => {
const translate = useTranslate();
const siteId = useSelector( getSelectedSiteId );
const siteId = useSelector( getSelectedSiteId ) ?? 0;
return (
<Main>
<DocumentHead title={ translate( 'Newsletter Settings' ) } />
<NavigationHeader navigationItems={ [] } title={ translate( 'Newsletter Settings' ) } />
<SubscriptionsModuleBanner />
<NewsletterSettingsForm siteId={ siteId } />
<NewsletterSettingsForm siteId={ Number( siteId ) } />
</Main>
);
};
Expand Down

0 comments on commit 63ba925

Please sign in to comment.