Skip to content

Commit 2d98eba

Browse files
committed
🔨 chore: add return if undefined total
1 parent 8aec960 commit 2d98eba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ async function init() {
5858
const age = calculateAge("07/21/2005");
5959

6060
const total = await getWakatimeTotalTime();
61+
if (!total) return;
62+
6163
const today = format(Date.now(), "yyyy-MM-dd");
6264
const bioMessage = `${age}y/o programmer and student - Frontend focused web dev. Coded Today (${today}): ${total}`;
6365

0 commit comments

Comments
 (0)