Fix unreleased UI bug in unlock modal (#16815)

This commit is contained in:
Sarah Gillespie 2024-02-14 09:21:28 -06:00 committed by GitHub
parent 260fd225e8
commit 059e21d7b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -1003,7 +1003,6 @@ const HostDetailsPage = ({
id={host.id}
platform={host.platform}
hostName={host.display_name}
pin={123456}
onSuccess={() => {
host.platform !== "darwin" && setHostMdmDeviceState("unlocking");
}}

View file

@ -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,
}
);