Skip to content

Commit c5a06a6

Browse files
committed
Added DELIVERED status check for checkAllDoseDelivered function
1 parent ea5d5a3 commit c5a06a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/digit_flow_builder/lib/utils/function_registry.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,8 @@ void initializeFunctionRegistry() {
462462
lastDose == selectedCycle.deliveries?.length &&
463463
lastCycle != null &&
464464
lastCycle == selectedCycle.id &&
465-
lastTaskStatus == 'ADMINISTRATION_SUCCESS') {
465+
(lastTaskStatus == 'ADMINISTRATION_SUCCESS' ||
466+
lastTaskStatus == 'DELIVERED')) {
466467
return true;
467468
}
468469

0 commit comments

Comments
 (0)