fixed build
This commit is contained in:
@@ -78,9 +78,9 @@ module.exports = {
|
|||||||
|
|
||||||
const timeSince = (date: number) => {
|
const timeSince = (date: number) => {
|
||||||
const now = Date.now();
|
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) {
|
if (interval > 1) {
|
||||||
return Math.floor(interval) + " years";
|
return Math.floor(interval) + " years";
|
||||||
|
|||||||
Reference in New Issue
Block a user