From bc0078f5d41ce7e932482d3a5a2a5caa206bae81 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Thu, 5 Jan 2023 19:27:04 -0300 Subject: [PATCH] Fix: remove 'slice' prop from Timer --- src/js/components/TheQuran/Timer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/components/TheQuran/Timer.tsx b/src/js/components/TheQuran/Timer.tsx index 9ed5673..ae2b332 100644 --- a/src/js/components/TheQuran/Timer.tsx +++ b/src/js/components/TheQuran/Timer.tsx @@ -9,7 +9,7 @@ interface Props { setStream: (stream: Ayat) => void } -export function Timer ({ surah, stream, setStream, locale, slice }: Props) { +export function Timer ({ surah, stream, setStream, locale }: Props) { const ayah = stream[stream.length - 1]; const [ms, setMs] = useState(ayah.readTimeMs); useEffect(() => setMs(ayah.readTimeMs), [ayah.id]);