remove duplicate

This commit is contained in:
Maxi Quoß
2023-01-28 20:30:06 +01:00
parent 6aedb5b5d1
commit 7d005aa9d0
2 changed files with 3 additions and 4 deletions

View File

@@ -47,10 +47,10 @@
// update device date
let now = Date.now();
let clear;
let interval;
$: {
clearInterval(clear);
clear = setInterval(() => {
clearInterval(interval);
interval = setInterval(() => {
now = Date.now();
}, 1000);
}

View File

@@ -185,7 +185,6 @@
</script>
<div class="container">
<DeviceForm bind:device={newDevice} mode="add" />
<section class="m-0 mt-4 p-4 shadow-sm">
<form on:submit|preventDefault={saveSettings}>
<h3 class="mb-3">Ping interval</h3>