mirror of
https://github.com/usememos/memos.git
synced 2025-01-23 13:40:21 +08:00
chore: update interval flag type
This commit is contained in:
parent
17c35be426
commit
8e63b8f289
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue