Skip to content

Commit

Permalink
try this?
Browse files Browse the repository at this point in the history
  • Loading branch information
mkst committed Nov 1, 2023
1 parent 834a6f9 commit eb7f6cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/app/(navfooter)/new/NewScratchForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default function NewScratchForm({ serverCompilers }: {
setPlatform(Object.keys(serverCompilers.platforms)[0])
}

if (!compiler || !presetId) { // We just changed platforms, probably
if (!compiler || isNaN(presetId)) { // We just changed platforms, probably
if (Object.keys(platformCompilers).length === 0) {
console.warn("No compilers supported for platform", platform)
} else {
Expand Down

0 comments on commit eb7f6cb

Please sign in to comment.