Skip to content

Commit

Permalink
🐛 Fixed adding of new gear without specifying the add time.
Browse files Browse the repository at this point in the history
  • Loading branch information
msimms committed Jun 4, 2024
1 parent bc7e9aa commit 148bbc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion html/gear.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@
let name = document.getElementById("name").value;
let description = document.getElementById("description").value;

if (!isNaN(add_time))
if (isNaN(add_time))
add_time = Date.now() / 1000;
else
add_time = add_time / 1000;
if (!isNaN(retired_time))
retired_time = retired_time / 1000;
Expand Down

0 comments on commit 148bbc2

Please sign in to comment.