feat: add logging functionality for counter updates for incrementing on different dates (for stats)
Build and publish Docker image / build-and-push (release) Successful in 1m9s
Build and publish Docker image / build-and-push (release) Successful in 1m9s
This commit is contained in:
@@ -495,6 +495,10 @@ export default function Home() {
|
||||
counterId={historyCounterId}
|
||||
cache={historyCache.current}
|
||||
onClose={() => setHistoryCounterId(null)}
|
||||
onLog={updated => {
|
||||
setCounters(prev => prev.map(c => c.id === updated.id ? { ...c, value: updated.value } : c));
|
||||
setArchivedCounters(prev => prev.map(c => c.id === updated.id ? { ...c, value: updated.value } : c));
|
||||
}}
|
||||
/>
|
||||
</main>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user