aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshm Walia <40498934+ashmgarv@users.noreply.github.com>2020-11-05 19:15:40 -0800
committerGitHub <noreply@github.com>2020-11-05 22:15:40 -0500
commitf7f2ee89e180b1d64f4e41ec61498508ea27ac25 (patch)
tree563e95677204d0a127b4c3c982e8c32c7356a921
parent96c46ac20f062aaf814f02184ce8c05ffc860a15 (diff)
done (#109)
-rw-r--r--src/utils/moments.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/moments.ts b/src/utils/moments.ts
index 0f8021cb..7428b1ac 100644
--- a/src/utils/moments.ts
+++ b/src/utils/moments.ts
@@ -24,8 +24,8 @@ export const getTimePosted = (date_time: string) => {
difference = now.diff(datePosted, 'hours');
time = difference + (difference === 1 ? ' hour' : ' hours');
}
- //1 day to less than 7 days
- else if (difference >= 24 * 60 * 60 && difference < 7 * 24 * 60 * 60) {
+ //Any number of days
+ else if (difference >= 24 * 60 * 60) {
difference = now.diff(datePosted, 'days');
time = difference + (difference === 1 ? ' day' : ' days');
}