Fix lint issues

This commit is contained in:
Tuan Dang
2023-12-04 16:24:55 +07:00
parent 3d6f04b94e
commit 282830e7a2
@@ -97,16 +97,15 @@ export const CreateClientSecretModal = ({
}: FormData) => { }: FormData) => {
try { try {
if (popUpData) { if (!popUpData?.machineId) return;
const { clientSecret } = await createClientSecretMutateAsync({
machineId: popUpData.machineId,
description,
ttl: Number(ttl)
});
const { clientSecret } = await createClientSecretMutateAsync({ setToken(clientSecret);
machineId: popUpData.machineId,
description,
ttl: Number(ttl)
});
setToken(clientSecret);
}
createNotification({ createNotification({
text: "Successfully created client secret", text: "Successfully created client secret",