department-of-veterans-affairs/vets-website

View on GitHub
src/applications/mhv-landing-page/selectors/hasMhvAccount.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Selects the hasMHVAccount state.
 * @param {Object} state The current application state.
 * @returns {boolean} The hasMHVAccount state.
 */

export const hasMhvAccount = state => {
  return ['OK', 'MULTIPLE'].includes(state?.user?.profile?.mhvAccountState);
};