Skip to content

Commit

Permalink
Merge pull request #24 from peopledrivemecrazy/frontend-fixes
Browse files Browse the repository at this point in the history
Svelte tweaks
  • Loading branch information
kristianfreeman authored Oct 14, 2021
2 parents 9bb45f8 + 270e4c6 commit c4e6276
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frontend/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@
init();
}
async function mint(evt) {
evt.preventDefault();
async function mint() {
await contractWithSigner.mintToken(quantity, account);
loading = true;
contractWithSigner.on("Minted", (from, to, amount, event) => {
Expand Down Expand Up @@ -160,7 +158,7 @@
</ul>
{/if}

<form on:submit={mint}>
<form on:submit|preventDefault={mint}>
<input
type="number"
min="1"
Expand Down

0 comments on commit c4e6276

Please sign in to comment.