Skip to content

Commit

Permalink
fix: log
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriocomo committed Dec 4, 2024
1 parent e92a3a6 commit 3b146fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/components/Foot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3b146fd

Please sign in to comment.