From 8e63b8f28901e26461ea04504e306d4e1ad1ce61 Mon Sep 17 00:00:00 2001 From: steven Date: Sat, 1 Oct 2022 23:01:32 +0800 Subject: [PATCH] chore: update interval flag type --- web/src/components/Memo.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/Memo.tsx b/web/src/components/Memo.tsx index 64fecbda..d6c0e2c8 100644 --- a/web/src/components/Memo.tsx +++ b/web/src/components/Memo.tsx @@ -39,7 +39,7 @@ const Memo: React.FC = (props: Props) => { const isVisitorMode = userService.isVisitorMode(); useEffect(() => { - let intervalFlag = -1; + let intervalFlag: any = -1; if (Date.now() - memo.createdTs < 1000 * 60 * 60 * 24) { intervalFlag = setInterval(() => { setCreatedAtStr(getFormatedMemoCreatedAtStr(memo.createdTs, i18n.language));