fix diable and enable seconds not working in time table

This commit is contained in:
RezHackXYZ 2025-06-01 12:09:37 +05:30
parent 55128257cb
commit e558f3abef
3 changed files with 12 additions and 6 deletions

View file

@ -2,11 +2,11 @@
import { onMount } from "svelte";
import Row from "./row.svelte";
let ShowSeconds;
import {ShowSeconds} from "../../logic/TimeAndTableData.svelte.js";
let ampm;
onMount(() => {
ShowSeconds = localStorage.getItem("ShowSeconds") || "true" == "true" ? true : false;
setInterval(() => {
ampm = new Date().getHours() >= 12 ? "PM" : "AM";
}, 1000);
@ -21,7 +21,7 @@
<Row type={"min"} digit={0} />
<Row type={"min"} digit={1} />
{#if ShowSeconds}
{#if ShowSeconds.v}
<h1 class="text-[75px] leading-none text-gray-500">.</h1>
<Row type={"sec"} digit={0} />