Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(suite): Dont show update banner until discovery is finished #16602

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jvaclavik
Copy link
Contributor

Description

Related Issue

Resolve

Screenshots:

@jvaclavik jvaclavik marked this pull request as ready for review January 27, 2025 11:55
@jvaclavik jvaclavik requested a review from vojtatranta January 27, 2025 11:56
@@ -77,6 +77,9 @@ export const UpdateNotificationBanner = ({
onClose,
}: UpdateNotificationBannerProps) => {
const dispatch = useDispatch();
const { getDiscoveryStatus } = useDiscovery();
const discoveryStatus = getDiscoveryStatus();
const discoveryInProgress = discoveryStatus && discoveryStatus.status === 'loading';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: The types say that status is only loading | exception. I'd expect something like "finished" or undefined discovery status to indicate the discovery process is done. But I can't tell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants