Skip to content

Commit

Permalink
🔨 chore: add return if undefined total
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Aug 27, 2021
1 parent 8aec960 commit 2d98eba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ async function init() {
const age = calculateAge("07/21/2005");

const total = await getWakatimeTotalTime();
if (!total) return;

const today = format(Date.now(), "yyyy-MM-dd");
const bioMessage = `${age}y/o programmer and student - Frontend focused web dev. Coded Today (${today}): ${total}`;

Expand Down

0 comments on commit 2d98eba

Please sign in to comment.