Skip to content
3 changes: 2 additions & 1 deletion i18n/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const en = {
"validationDateBefore": "Date must be before {0}/{1}/{2}",
"validationEmailAddress": "Please enter an email address in this format: user@example.com",
"validationPhoneNumber": "Please enter a phone number in this format: 999-999-9999",
"validationZipCode": "Please enter a zip code in this format: 99999",
"validationSocialFull": "Please enter a valid Social Security Number in this format: 999-99-9999",
"validationSocialPartial": "Please enter the last four digits of a Social Security Number in this format: 9999",
"validationTextShortExact": "Entered text is too short (should have {0} characters)",
Expand All @@ -58,4 +59,4 @@ const en = {
"enterValue": "Enter a value"
}

export default en;
export default en;
1 change: 1 addition & 0 deletions i18n/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const es = {
"validationDateBefore": "La fecha debe ser anterior al {0}/{1}/{2}",
"validationEmailAddress": "Ingrese una dirección de correo electrónico con este formato: user@example.com",
"validationPhoneNumber": "Ingrese un número de teléfono con este formato: 999-999-9999",
"validationZipCode": "Por favor ponga un código postal en este formato: 99999",
"validationSocialFull": "Ingrese un número de Seguro Social válido con este formato: 999-99-9999",
"validationSocialPartial": "Ingrese los últimos cuatro dígitos de un número de Seguro Social con este formato: 9999",
"validationTextShortExact": "El texto ingresado es demasiado corto (debe tener {0} caracteres)",
Expand Down
6 changes: 2 additions & 4 deletions questionnaire.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { validateInput, validationError } from "./validate.js"
import { translate } from "./common.js";

export const moduleParams = {};
import * as mathjs from 'https://cdn.skypack.dev/mathjs@11.2.0';
import * as mathjs from 'https://cdn.jsdelivr.net/npm/mathjs@15.2.0/+esm';
export const math=mathjs.create(mathjs.all)
window.math = math

Expand Down Expand Up @@ -979,9 +979,7 @@ export async function submitQuestionnaire(store, questName) {
formData[`${questName}.COMPLETED`] = true;
formData[`${questName}.COMPLETED_TS`] = new Date();
try {
store(formData).then(() => {
location.reload();
});
store(formData);
} catch (e) {
console.log("Store failed", e);
}
Expand Down
Loading
Loading