src/applications/check-in/hooks/useSendTravelPayClaim.jsx
Function useSendTravelPayClaim
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useSendTravelPayClaim = appointment => {
const [isLoading, setIsLoading] = useState(false);
const [travelPayClaimError, setTravelPayClaimError] = useState(false);
const [travelPayClaimRequested, setTravelPayClaimRequested] = useState();
Consider simplifying this complex logical expression. Open
Open
if (
isLoading ||
!isTravelReimbursementEnabled ||
travelPayClaimSent ||
!travelPayEligible ||