Fix lint issues

This commit is contained in:
Tuan Dang
2023-12-04 16:24:55 +07:00
parent 3d6f04b94e
commit 282830e7a2

View File

@@ -97,16 +97,15 @@ export const CreateClientSecretModal = ({
}: FormData) => {
try {
if (popUpData) {
if (!popUpData?.machineId) return;
const { clientSecret } = await createClientSecretMutateAsync({
machineId: popUpData.machineId,
description,
ttl: Number(ttl)
});
const { clientSecret } = await createClientSecretMutateAsync({
machineId: popUpData.machineId,
description,
ttl: Number(ttl)
});
setToken(clientSecret);
}
setToken(clientSecret);
createNotification({
text: "Successfully created client secret",