portainer/portainer

View on GitHub
app/react/sidebar/Footer/UpdateNotifications.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function UpdateNotification has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function UpdateNotification() {
  const uiStateStore = useUIState();
  const query = useSystemVersion();

  if (!query.data || !query.data.UpdateAvailable) {
Severity: Minor
Found in app/react/sidebar/Footer/UpdateNotifications.tsx - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status