From cab5e229c55dcc5b347b20bc97489c4aa9983d63 Mon Sep 17 00:00:00 2001 From: Dylan Munson <65001528+CodeyGuyDylan@users.noreply.github.com> Date: Thu, 19 Dec 2024 09:07:11 -0700 Subject: [PATCH] Fix backup card not updating when site is connectd (#40653) * Fix backup card not updating when site is connected * changelog --- .../_inc/components/connected-product-card/index.tsx | 6 +----- .../fix-backup-card-not-updating-when-site-is-connectd | 4 ++++ 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 projects/packages/my-jetpack/changelog/fix-backup-card-not-updating-when-site-is-connectd diff --git a/projects/packages/my-jetpack/_inc/components/connected-product-card/index.tsx b/projects/packages/my-jetpack/_inc/components/connected-product-card/index.tsx index d93ac23088bb8..0f2218763f4a8 100644 --- a/projects/packages/my-jetpack/_inc/components/connected-product-card/index.tsx +++ b/projects/packages/my-jetpack/_inc/components/connected-product-card/index.tsx @@ -98,11 +98,7 @@ const ConnectedProductCard: FC< ConnectedProductCardProps > = ( { }; useEffect( () => { - if ( - isRegistered && - ( status === PRODUCT_STATUSES.SITE_CONNECTION_ERROR || - status === PRODUCT_STATUSES.NEEDS_FIRST_SITE_CONNECTION ) - ) { + if ( isRegistered ) { refetch(); } }, [ isRegistered, status, refetch ] ); diff --git a/projects/packages/my-jetpack/changelog/fix-backup-card-not-updating-when-site-is-connectd b/projects/packages/my-jetpack/changelog/fix-backup-card-not-updating-when-site-is-connectd new file mode 100644 index 0000000000000..39d4b1ac2e15d --- /dev/null +++ b/projects/packages/my-jetpack/changelog/fix-backup-card-not-updating-when-site-is-connectd @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Fix issue where backup card was not updating after site connection in some situations