diff --git a/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx b/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx index c2bcd07b3f..a4bfef1362 100644 --- a/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx +++ b/frontend/pages/hosts/details/HostDetailsPage/HostDetailsPage.tsx @@ -1003,7 +1003,6 @@ const HostDetailsPage = ({ id={host.id} platform={host.platform} hostName={host.display_name} - pin={123456} onSuccess={() => { host.platform !== "darwin" && setHostMdmDeviceState("unlocking"); }} diff --git a/frontend/pages/hosts/details/HostDetailsPage/modals/UnlockModal/UnlockModal.tsx b/frontend/pages/hosts/details/HostDetailsPage/modals/UnlockModal/UnlockModal.tsx index 827460dde9..1cf9ef9272 100644 --- a/frontend/pages/hosts/details/HostDetailsPage/modals/UnlockModal/UnlockModal.tsx +++ b/frontend/pages/hosts/details/HostDetailsPage/modals/UnlockModal/UnlockModal.tsx @@ -16,7 +16,6 @@ interface IUnlockModalProps { id: number; platform: string; hostName: string; - pin?: number; onSuccess: () => void; onClose: () => void; } @@ -25,7 +24,6 @@ const UnlockModal = ({ id, platform, hostName, - pin, onSuccess, onClose, }: IUnlockModalProps) => { @@ -41,6 +39,9 @@ const UnlockModal = ({ () => hostAPI.unlockHost(id), { enabled: platform === "darwin", + refetchOnWindowFocus: false, + refetchOnReconnect: false, + retry: false, } );