fixed for loop bug
This commit is contained in:
parent
85058be1c2
commit
049a9bec94
2
main.js
2
main.js
@ -131,7 +131,7 @@ async function fetchNewPosts() {
|
|||||||
.reverse();
|
.reverse();
|
||||||
|
|
||||||
let newTimestampId = 0;
|
let newTimestampId = 0;
|
||||||
for (item in reversed) {
|
for (item of reversed) {
|
||||||
const currentTimestampId = Date.parse(item.published);
|
const currentTimestampId = Date.parse(item.published);
|
||||||
|
|
||||||
if (currentTimestampId > newTimestampId) {
|
if (currentTimestampId > newTimestampId) {
|
||||||
|
Loading…
Reference in New Issue
Block a user