Skip to content

Commit

Permalink
fix iso file type check
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed May 12, 2021
1 parent 4d8373d commit 5af3bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/actions/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export function validateISO() {
return;
}

if (path.extname(isoPath) !== ".iso" || path.extname(isoPath) !== ".gcm") {
if (path.extname(isoPath) !== ".iso" && path.extname(isoPath) !== ".gcm") {
const errorAction = displayError(
'settings-global',
"The file selected is not a valid ISO file",
Expand Down

0 comments on commit 5af3bc9

Please sign in to comment.