diff --git a/src/features/channel/components/channel-add-edit-modal.tsx b/src/features/channel/components/channel-add-edit-modal.tsx
index 4f8e1164..90bb8ff1 100644
--- a/src/features/channel/components/channel-add-edit-modal.tsx
+++ b/src/features/channel/components/channel-add-edit-modal.tsx
@@ -43,7 +43,7 @@ export const ChannelAddEditModal = ({
}: ChannelAddModalProps) => {
const isMobile = useIsMobile();
const [openInternal, setOpen] = useState(open);
- const isLocalSystem = channel?.provider == "local";
+ const isLocalSystem = channel?.provider === "local";
const isCreate = !Boolean(channel);
diff --git a/src/features/channel/components/channel-edit-button.tsx b/src/features/channel/components/channel-edit-button.tsx
index 37ece12d..e997df52 100644
--- a/src/features/channel/components/channel-edit-button.tsx
+++ b/src/features/channel/components/channel-edit-button.tsx
@@ -33,7 +33,7 @@ export const EditChannelButton = ({
}: EditChannelButtonProps) => {
const router = useRouter();
const [isAddModalOpen, setIsAddModalOpen] = useState(false);
- const isLocalSystem = channel.provider == "local";
+ const isLocalSystem = channel.provider === "local";
const mutation = useMutation({
@@ -51,10 +51,10 @@ export const EditChannelButton = ({
};
let result: any;
- if (kind == "notification") {
+ if (kind === "notification") {
// @ts-expect-error — payload type varies between notification and storage
result = await updateNotificationChannelAction(payload)
- } else if (kind == "storage") {
+ } else if (kind === "storage") {
// @ts-expect-error — payload type varies between notification and storage
result = await updateStorageChannelAction(payload)
} else {
diff --git a/src/features/channel/components/channel-form.tsx b/src/features/channel/components/channel-form.tsx
index 979130b7..4a0457c7 100644
--- a/src/features/channel/components/channel-form.tsx
+++ b/src/features/channel/components/channel-form.tsx
@@ -224,13 +224,11 @@ export const ChannelForm = ({onSuccessAction, organization, defaultValues, kind}
- {(!isCreate || kind == "storage") && (
-
- )}
+