department-of-veterans-affairs/vets-website

View on GitHub
src/applications/appeals/995/utils/livingSituation.js

Summary

Maintainability
A
0 mins
Test Coverage
import { showScNewForm } from './toggle';

export const hasHousingRisk = formData =>
  showScNewForm(formData) && formData.housingRisk;

export const hasOtherHousingRisk = formData =>
  showScNewForm(formData) &&
  hasHousingRisk(formData) &&
  formData.livingSituation?.other;