Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
raymeskhoury authored Jul 24, 2024
1 parent da0209e commit e5006a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blog/src/blog.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ async function downloadPosts() {

if (index >= 1) {
newerLink = {
post: posts[index - 1],
post: posts[index - 1].substring(0, posts[index - 1].length - 3),
};
}
if (index < posts.length - 1) {
olderLink = {
post: posts[index + 1],
post: posts[index + 1].substring(0, posts[index + 1].length - 3),
};
}
await addPost(postName);
Expand Down

0 comments on commit e5006a4

Please sign in to comment.