Fix lint issue

This commit is contained in:
Tuan Dang
2023-06-12 12:16:23 +01:00
parent 4616cffecd
commit 553cf11ad2

View File

@@ -1,11 +1,13 @@
import { useEffect, useState } from "react";
import {
Checkbox
} from "@app/components/v2";
import {
decryptAssymmetric,
encryptAssymmetric
} from "@app/components/utilities/cryptography/crypto";
import {
Checkbox
} from "@app/components/v2";
import getBot from '../../../../../pages/api/bot/getBot';
import setBotActiveStatus from '../../../../../pages/api/bot/setBotActiveStatus';
import getLatestFileKey from '../../../../../pages/api/workspace/getLatestFileKey';
@@ -101,7 +103,7 @@ export const E2EESection = ({
className="data-[state=checked]:bg-primary"
id="autoCapitalization"
isChecked={!bot.isActive}
onCheckedChange={async (state) => {
onCheckedChange={async () => {
await toggleBotActivate();
}}
>