diff --git a/client/me/purchases/manage-purchase/index.tsx b/client/me/purchases/manage-purchase/index.tsx index a2ce3fa375338..1c6e47c600fc8 100644 --- a/client/me/purchases/manage-purchase/index.tsx +++ b/client/me/purchases/manage-purchase/index.tsx @@ -288,7 +288,9 @@ class ManagePurchase extends Component< const { purchase, siteSlug, redirectTo } = this.props; const options = redirectTo ? { redirectTo } : undefined; const isSitelessRenewal = - isAkismetTemporarySitePurchase( purchase ) || isMarketplaceTemporarySitePurchase( purchase ); + purchase && + ( isAkismetTemporarySitePurchase( purchase ) || + isMarketplaceTemporarySitePurchase( purchase ) ); if ( ! purchase ) { return; @@ -1692,10 +1694,9 @@ export default connect( ( state: IAppState, props: ManagePurchaseProps ) => { hasSetupAds: Boolean( site?.options?.wordads || isRequestingWordAdsApprovalForSite( state, site ) ), - hasCompletedCancelPurchaseSurvey: getPreference( - state, - getCancelPurchaseSurveyCompletedPreferenceKey( purchase?.id ) - ), + hasCompletedCancelPurchaseSurvey: purchase + ? getPreference( state, getCancelPurchaseSurveyCompletedPreferenceKey( purchase.id ) ) + : false, isAtomicSite: isSiteAtomic( state, siteId ), isDomainOnlySite: purchase && isDomainOnly( state, purchase.siteId ), isProductOwner,