Skip to content

Commit

Permalink
fix: cannot add animal after deleting empty drugs
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgamache committed Nov 26, 2024
1 parent 69573d9 commit a82e175
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export const CreateAnimalOutcome: FC<props> = ({ index, assignedOfficer: officer
}
});

if (!authorizationRef.current.isValid()) {
if (authorizationRef.current && !authorizationRef.current.isValid()) {
_isValid = false;
}

Expand Down

0 comments on commit a82e175

Please sign in to comment.