fixed build

This commit is contained in:
Arwid Thornström
2022-12-06 13:35:12 +01:00
parent c7090fc1f3
commit b8f1e3154b
@@ -78,9 +78,9 @@ module.exports = {
const timeSince = (date: number) => {
const now = Date.now();
var seconds = Math.floor((now - date) / 1000);
const seconds = Math.floor((now - date) / 1000);
var interval = seconds / 31536000;
let interval = seconds / 31536000;
if (interval > 1) {
return Math.floor(interval) + " years";