Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asa-siphuma committed Sep 27, 2024
1 parent 5d0c1cb commit 3264d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/Components/PostsTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function PostsTab({ userInfo, userProfile, handleCommentPress, re

const getRandomNumber = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min;

const formatTimeAgoFromDB = (dateString) => {
const formatTimeAgoFromDB = (date) => {
return moment(date).fromNow(); // Using moment.js to format the date as 'X time ago'
};

Expand Down

0 comments on commit 3264d8b

Please sign in to comment.