Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LF-3951: Show water calculator with wild crops #3280

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default function PureIrrigationTask({
const waterCalculatorDisabled =
!showWaterUseCalculatorModal ||
!measurement_type ||
(measurement_type === 'DEPTH' && !location);
(measurement_type === 'DEPTH' && !(location || getValues().show_wild_crop));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using this form value works on task creation, but if the user wants to open the calculator when they complete the task, show_wild_crop won't be available -- I think it's unique to creation and maybe something else like pinCoordinates would have to control the logic for task completion?


return (
<>
Expand Down
Loading