Skip to content

Commit

Permalink
xZXxz
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurgolo committed Mar 2, 2024
1 parent 5247c41 commit 9713758
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ form.onsubmit = async (event) => {
event.preventDefault();
const teamname = input.value;
let DateObj = new Date();
const globalid = DateObj.getTime();
const parsedGlobalid = parseInt(globalid,10);
await db.teams.add({ teamname , parsedGlobalid });
const globalid = parseInt(DateObj.getTime(),10);
await db.teams.add({ teamname , globalid });
await getTeams();
form.reset();
};
Expand Down

0 comments on commit 9713758

Please sign in to comment.