Skip to content

Commit

Permalink
revert in favor on push and reassign
Browse files Browse the repository at this point in the history
  • Loading branch information
peopledrivemecrazy committed Oct 9, 2021
1 parent bab2cad commit 270e4c6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions frontend/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@
}
async function mint() {
await contractWithSigner.mintToken(quantity, account);
loading = true;
contractWithSigner.on("Minted", (from, to, amount, event) => {
Expand All @@ -83,8 +81,9 @@
const result = await response.json();
result.id = token;
ownedTokens = [...ownedTokens, result];
ownedTokens.push(result);
}
ownedTokens = ownedTokens;
}
async function findCurrentMinted() {
Expand All @@ -101,6 +100,7 @@
"0xb9203d657e9c0ec8274c818292ab0f58b04e1970050716891770eb1bab5d655e",
],
});
recentMintEvents = recentMintEvents.slice(-3);
await recentMintEvents.map(async (MintEvent) => {
Expand All @@ -111,7 +111,8 @@
const result = await response.json();
result.id = token;
recentlyMintedTokens = [...recentlyMintedTokens, result];
recentlyMintedTokens.push(result);
recentlyMintedTokens = recentlyMintedTokens;
});
}
</script>
Expand Down

0 comments on commit 270e4c6

Please sign in to comment.