Skip to content

Commit 37c7228

Browse files
committed
Solve .values problem
1 parent 0058402 commit 37c7228

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

policyengine_uk/variables/gov/hmrc/tax_free_childcare/tax_free_childcare_benefits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def formula(benunit, period, parameters):
4949
child_mask = benunit.members("is_child", period)
5050
max_amount = where(
5151
child_mask
52-
* p_disabled.amount, # Use the disabled parameter amount
52+
* (p_disabled.amount > 0), # Check if disabled amount exists
5353
where(is_eligible, p_tfc.disabled_child.values, 0),
5454
where(
5555
child_mask,

0 commit comments

Comments
 (0)