chore: update interval flag type

This commit is contained in:
steven 2022-10-01 23:01:32 +08:00
parent 17c35be426
commit 8e63b8f289

View file

@ -39,7 +39,7 @@ const Memo: React.FC<Props> = (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));