Skip to content

Commit

Permalink
Fixed #31 crude but effective rejection of empty modid
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHillcox authored and modmuss50 committed Apr 21, 2023
1 parent 6bbc31f commit 1abbafc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/src/lib/Template.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
}
async function generate() {
if (modIdErrors != undefined) {
if (modIdErrors != undefined || modid === "") {
return;
}
Expand Down Expand Up @@ -156,6 +156,10 @@
{/if}

<input id="project-name" bind:value={projectName} />

{#if modid === ""}
<p style="color: red">The Modname can not be empty!</p>
{/if}
</div>

{#if customModId != undefined}
Expand Down

0 comments on commit 1abbafc

Please sign in to comment.