Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur791004 authored and zaguiini committed Dec 24, 2024
1 parent 3677efb commit adc3a96
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ import { recordTracksEvent } from 'calypso/lib/analytics/tracks';
import DIFMLanding from 'calypso/my-sites/marketing/do-it-for-me/difm-landing';
import { getCurrentUserSiteCount } from 'calypso/state/current-user/selectors';
import type { Step } from '../../types';
import type { AppState } from 'calypso/types';

const STEP_NAME = 'difmStartingPoint';
const DIFMStartingPoint: Step = function ( { navigation } ) {
const { goNext, goBack, submit } = navigation;
const translate = useTranslate();
const existingSiteCount = useSelector( ( state ) => getCurrentUserSiteCount( state ) );
const existingSiteCount = useSelector( ( state: AppState ) => getCurrentUserSiteCount( state ) );
const siteId = useSite()?.ID;
const showNewOrExistingSiteChoice = ! siteId && existingSiteCount > 0;
const showNewOrExistingSiteChoice = ! siteId && !! existingSiteCount && existingSiteCount > 0;

const onSubmit = ( value: string ) => {
submit?.( {
Expand Down

0 comments on commit adc3a96

Please sign in to comment.