From b2a2ad59ce5644c75c1aedea29768f55347c8e31 Mon Sep 17 00:00:00 2001 From: r-freeman Date: Fri, 10 Feb 2023 17:01:27 +0000 Subject: [PATCH] Fixed type issue with dashboard --- lib/dashboard.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/dashboard.ts b/lib/dashboard.ts index ea23a9a..951ed51 100644 --- a/lib/dashboard.ts +++ b/lib/dashboard.ts @@ -21,7 +21,7 @@ export async function getDashboardData() { const metrics: Metric[] = [ { title: "Minutes listened", - value: minutesListened, + value: +minutesListened, group: "Spotify", href: "https://open.spotify.com/?" }, @@ -39,31 +39,31 @@ export async function getDashboardData() { }, { title: "Repos", - value: totalRepos, + value: +totalRepos, group: "GitHub", href: "https://github.com/r-freeman?tab=repositories" }, { title: "Followers", - value: totalFollowers, + value: +totalFollowers, group: "GitHub", href: "https://github.com/r-freeman?tab=followers" }, { title: "Stars", - value: totalStars, + value: +totalStars, group: "GitHub", href: "https://github.com/r-freeman/" }, { title: "Total articles", - value: totalArticles, + value: +totalArticles, group: "Blog", href: "/writing" }, { title: "Total article views", - value: totalArticleViews, + value: +totalArticleViews, group: "Blog", href: "/writing" }