@@ -77,8 +77,7 @@ const BackupCard = props => {
7777 const { detail } = useProduct ( productSlug ) ;
7878 const { status, doesModuleNeedAttention } = detail ;
7979 const lastBackupFailed = ! ! doesModuleNeedAttention ;
80- const lastBackupStatus = doesModuleNeedAttention ?. data ?. status || undefined ;
81- const statusType = doesModuleNeedAttention ?. type || undefined ;
80+ const lastBackupStatus = doesModuleNeedAttention ?. data ?. status || { } ;
8281 const hasBackups = status === PRODUCT_STATUSES . ACTIVE || status === PRODUCT_STATUSES . CAN_UPGRADE ;
8382 const noDescription = ( ) => null ;
8483 const { siteUrl = '' } = getMyJetpackWindowInitialState ( ) ;
@@ -93,12 +92,9 @@ const BackupCard = props => {
9392
9493 // Check if backups are deactivated (INACTIVE status with info type).
9594 const isDeactivated =
96- status === PRODUCT_STATUSES . INACTIVE &&
97- statusType === 'info' &&
98- lastBackupStatus === 'backups-deactivated' ;
95+ status === PRODUCT_STATUSES . INACTIVE && lastBackupStatus === 'backups-deactivated' ;
9996
100- const isError =
101- status === PRODUCT_STATUSES . NEEDS_ATTENTION__ERROR && lastBackupFailed && ! isDeactivated ;
97+ const isError = status === PRODUCT_STATUSES . NEEDS_ATTENTION__ERROR && lastBackupFailed ;
10298
10399 // Build support URL with pre-filled subject and site URL
104100 const supportUrl = getRedirectUrl ( 'jetpack-backup-support-reactivate' , {
@@ -140,7 +136,7 @@ const BackupCard = props => {
140136 </ div >
141137 < div className = { styles . contentContainer } >
142138 < Text variant = "body-small" className = "value-section__heading" >
143- { errorTitle || __ ( 'The last backup attempt failed.' , 'jetpack-my-jetpack' ) }
139+ { __ ( 'The last backup attempt failed.' , 'jetpack-my-jetpack' ) }
144140 < InfoTooltip
145141 tracksEventName = { 'backup_card_tooltip_open' }
146142 tracksEventProps = { {
0 commit comments