From 89fd07bdf796247a777bf8544e64fc3664e90152 Mon Sep 17 00:00:00 2001 From: Tijl Leenders Date: Tue, 26 Mar 2024 08:05:13 +0100 Subject: [PATCH] prevent subtracting child duration if None --- src/services/activity_generator.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/services/activity_generator.rs b/src/services/activity_generator.rs index 22cc08e9..9beb39e3 100644 --- a/src/services/activity_generator.rs +++ b/src/services/activity_generator.rs @@ -92,10 +92,12 @@ pub(crate) fn get_base_activities(calendar: &Calendar, goals: &[Goal]) -> Vec