Commit bbe0bb7

derdilla <82763757+NobodyForNothing@users.noreply.github.com>
2023-12-31 10:02:09
fix empty record creation
Signed-off-by: derdilla <82763757+NobodyForNothing@users.noreply.github.com>
1 parent f768bf8
Changed files (1)
lib
components
lib/components/dialoges/add_measurement_dialoge.dart
@@ -227,7 +227,7 @@ class _AddEntryDialogeState extends State<AddEntryDialoge> {
           }
           BloodPressureRecord? record;
           if (systolic != null || diastolic != null || pulse != null
-              || notes != null || needlePin != null) {
+              || (notes ?? '').isNotEmpty || needlePin != null) {
             record = BloodPressureRecord(time, systolic, diastolic, pulse, notes ?? '', needlePin: needlePin);
           }