From 84e95fdd935b660544eae1164dee79fc8d78ff7d Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Thu, 24 Oct 2024 22:33:11 +0200 Subject: [PATCH] chore: update variable in notification logic --- internal/notifications/desktop.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/notifications/desktop.go b/internal/notifications/desktop.go index 417de71..5f35efd 100644 --- a/internal/notifications/desktop.go +++ b/internal/notifications/desktop.go @@ -16,7 +16,7 @@ func DesktopNotifications() { session := pomodoro.Session sessions := pomodoro.PomodoroSettings.Sessions - switch pomodoro.Mode { + switch mode { case "Work": duration = pomodoro.PomodoroSettings.Work notification = fmt.Sprintf("Session %d/%d: %s %0.f minutes", session, sessions, mode, float32(duration)/60)