src/applications/edu-benefits/feedback-tool/helpers.js
File helpers.js
has 329 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import appendQuery from 'append-query';
import * as Sentry from '@sentry/browser';
import React from 'react';
import fullSchema from 'vets-json-schema/dist/FEEDBACK-TOOL-schema.json';
import { transformForSubmit } from 'platform/forms-system/src/js/helpers';
Consider simplifying this complex logical expression. Open
Open
if (isDomesticAddress) {
address = {
country: 'United States',
street:
address1 &&
Function submit
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function submit(form, formConfig) {
const headers = { 'Content-Type': 'application/json' };
const body = transform(formConfig, form);
const apiRequestOptions = {
method: 'POST',