Compare commits
2 Commits
v1.1.1
...
e2b406946f
| Author | SHA1 | Date | |
|---|---|---|---|
| e2b406946f | |||
| 74d95f08f5 |
@@ -6,6 +6,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="color-scheme" content="light" />
|
||||
<title>Daily Time Tracking</title>
|
||||
<script defer src="https://umami.knier.uk/script.js" data-website-id="8776a11a-9f28-49f4-9b95-87cf1317a9a1"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
@@ -67,13 +67,6 @@ export function App() {
|
||||
return () => sub.unsubscribe();
|
||||
}, [handleSubmit, watch]);
|
||||
|
||||
// submit form when loaded if we have a previously recorded time
|
||||
useEffect(() => {
|
||||
if (getStoredRecordedTime()) {
|
||||
handleSubmit(onSubmit)(null);
|
||||
}
|
||||
}, [handleSubmit]);
|
||||
|
||||
return (
|
||||
<div class="window" style={{margin: "32px auto", width: "250px"}}>
|
||||
<div class="title-bar">
|
||||
|
||||
Reference in New Issue
Block a user