Skip to content

Commit

Permalink
Fix backup card not updating when site is connectd (#40653)
Browse files Browse the repository at this point in the history
* Fix backup card not updating when site is connected

* changelog
  • Loading branch information
CodeyGuyDylan authored Dec 19, 2024
1 parent b0015a6 commit cab5e22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ] );
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fix issue where backup card was not updating after site connection in some situations

0 comments on commit cab5e22

Please sign in to comment.