Update Home.jsx
This commit is contained in:
parent
3aabe2874e
commit
d4e9e74653
@ -72,9 +72,8 @@ function Home() {
|
|||||||
}
|
}
|
||||||
const handleSubmit = async (event) => {
|
const handleSubmit = async (event) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
let input = parseInt(inputValue.trim());
|
|
||||||
let time = Math.round((new Date(inputValue.trim()).getTime() + 70000) / 1000);
|
let time = Math.round((new Date(inputValue.trim()).getTime() + 70000) / 1000);
|
||||||
if (input === -1) {
|
if (inputValue.trim() === "-1") {
|
||||||
time = 1711741114;
|
time = 1711741114;
|
||||||
}
|
}
|
||||||
if (time < 0 || isNaN(time)) return;
|
if (time < 0 || isNaN(time)) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user