diff --git a/frontend/components/ActivityDetails/InstallDetails/SoftwareInstallDetailsModal/SoftwareInstallDetailsModal.tsx b/frontend/components/ActivityDetails/InstallDetails/SoftwareInstallDetailsModal/SoftwareInstallDetailsModal.tsx index 5ecb2db81b..baa5525e45 100644 --- a/frontend/components/ActivityDetails/InstallDetails/SoftwareInstallDetailsModal/SoftwareInstallDetailsModal.tsx +++ b/frontend/components/ActivityDetails/InstallDetails/SoftwareInstallDetailsModal/SoftwareInstallDetailsModal.tsx @@ -285,7 +285,7 @@ export const SoftwareInstallDetailsModal = ({ if (hostSoftware?.installed_versions?.length) { return ; } - return "If you uninstalled it outside of Fleet it will still show as installed."; + return null; }; const renderInstallDetailsSection = () => { diff --git a/frontend/components/ActivityDetails/InstallDetails/SoftwareIpaInstallDetailsModal/SoftwareIpaInstallDetailsModal.tsx b/frontend/components/ActivityDetails/InstallDetails/SoftwareIpaInstallDetailsModal/SoftwareIpaInstallDetailsModal.tsx index 1f2c355d93..025711fb20 100644 --- a/frontend/components/ActivityDetails/InstallDetails/SoftwareIpaInstallDetailsModal/SoftwareIpaInstallDetailsModal.tsx +++ b/frontend/components/ActivityDetails/InstallDetails/SoftwareIpaInstallDetailsModal/SoftwareIpaInstallDetailsModal.tsx @@ -391,7 +391,7 @@ export const SoftwareIpaInstallDetailsModal = ({ if (hostSoftware?.installed_versions?.length) { return ; } - return "If you uninstalled it outside of Fleet it will still show as installed."; + return null; }; const renderInstallDetailsSection = () => { diff --git a/frontend/components/ActivityDetails/InstallDetails/VppInstallDetailsModal/VppInstallDetailsModal.tests.tsx b/frontend/components/ActivityDetails/InstallDetails/VppInstallDetailsModal/VppInstallDetailsModal.tests.tsx index d754b0bdc8..598960d6b3 100644 --- a/frontend/components/ActivityDetails/InstallDetails/VppInstallDetailsModal/VppInstallDetailsModal.tests.tsx +++ b/frontend/components/ActivityDetails/InstallDetails/VppInstallDetailsModal/VppInstallDetailsModal.tests.tsx @@ -562,53 +562,4 @@ describe("VPP Install Details Modal", () => { ) ).toBeInTheDocument(); }); - - it("does not render the stale uninstall sentence on My device", async () => { - mockServer.use(getDeviceVppCommandResultHandler); - - const hostSoftware = createMockHostSoftware({ - id: 123, - status: "installed", - name: "Keynote", - display_name: "Keynote", - installed_versions: [], - source: "apps", - app_store_app: createMockHostAppStoreApp({ - platform: "darwin", - last_install: { - command_uuid: "acknowledged-uuid", - installed_at: "2025-08-10T12:00:00Z", - }, - }), - }); - - renderWithBackend( - - ); - - // Wait for the success state to render - await waitFor(() => { - // Just assert on the actual text we render in this mode - expect(screen.getByText(/Keynote/i)).toBeInTheDocument(); - expect(screen.getByText(/is installed\./i)).toBeInTheDocument(); - }); - - // And still assert that the “stale uninstall” copy is omitted - expect( - screen.queryByText( - /If you uninstalled it outside of Fleet it will still show as installed/i - ) - ).not.toBeInTheDocument(); - }); });