From 3b146fd522df3c50ae6c1b9fed8ba532c5d94fe9 Mon Sep 17 00:00:00 2001 From: valerio como Date: Wed, 4 Dec 2024 10:53:46 +0000 Subject: [PATCH] fix: log --- src/app/components/Foot.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/components/Foot.tsx b/src/app/components/Foot.tsx index c8ae713..a86d899 100644 --- a/src/app/components/Foot.tsx +++ b/src/app/components/Foot.tsx @@ -60,8 +60,9 @@ export const Footer = (props: Props): JSX.Element => { if (submitType === 'file') { //check application type - const isNotApplicationTypeYaml = !isYamlFile(file) - if (isNotApplicationTypeYaml) { + const isNotYamlFile = !isYamlFile(file) + console.log('submitType: file', `isNotYamlFile: ${isNotYamlFile}`, file?.type) + if (isNotYamlFile) { notify(t("editor.filenotsupported"), { state: "error" }); return; }