+
diff --git a/src/app/[lang]/txn/compose/components/ComposeFormValidation.test.tsx b/src/app/[lang]/txn/compose/components/ComposeFormValidation.test.tsx
index 3b5ecc85..65c5672a 100644
--- a/src/app/[lang]/txn/compose/components/ComposeFormValidation.test.tsx
+++ b/src/app/[lang]/txn/compose/components/ComposeFormValidation.test.tsx
@@ -84,9 +84,9 @@ describe('Compose Form Component', () => {
});
// eslint-disable-next-line max-len
- it('continues to sign-transaction page if invalid transaction data is submitted and the "ignore compose form validation errors" setting is on',
+ it('continues to sign-transaction page if invalid transaction data is submitted and the "do not allow form errors" setting is off',
async () => {
- localStorage.setItem('ignoreFormErrors', 'true');
+ localStorage.setItem('disallowFormErrors', 'false');
render(
// Wrap component in new Jotai provider to reset data stored in Jotai atoms
diff --git a/src/app/[lang]/txn/compose/components/ComposeSubmitButton.tsx b/src/app/[lang]/txn/compose/components/ComposeSubmitButton.tsx
index 094af610..2120a869 100644
--- a/src/app/[lang]/txn/compose/components/ComposeSubmitButton.tsx
+++ b/src/app/[lang]/txn/compose/components/ComposeSubmitButton.tsx
@@ -25,7 +25,7 @@ export default function ComposeSubmitButton({ lng }: Props) {
const [submittingForm, setSubmittingForm] = useState(false);
const jotaiStore = useStore();
const storedTxnData = useAtomValue(storedTxnDataAtom);
- const ignoreFormErrors = useAtomValue(AppSettings.ignoreFormErrorsAtom);
+ const disallowFormErrors = useAtomValue(AppSettings.disallowFormErrorsAtom);
const router = useRouter();
const currentURLParams = useSearchParams();
const preset = currentURLParams.get(Preset.ParamName);
@@ -42,8 +42,8 @@ export default function ComposeSubmitButton({ lng }: Props) {
const submitData = async (e: React.MouseEvent) => {
e.preventDefault();
- // Check if the form is valid only if the "ignore form error" setting is off
- if (!ignoreFormErrors && !isFormValid(preset, jotaiStore)) {
+ // Check if the form is valid only if the "do not allow form errors" setting is on
+ if (disallowFormErrors && !isFormValid(preset, jotaiStore)) {
jotaiStore.set(showFormErrorsAtom, true);
return;
}
diff --git a/src/app/i18n/locales/en/app.yml b/src/app/i18n/locales/en/app.yml
index 40ed0cfc..66948d91 100644
--- a/src/app/i18n/locales/en/app.yml
+++ b/src/app/i18n/locales/en/app.yml
@@ -32,7 +32,7 @@ settings:
sign_txn_heading: Sign Transaction
send_txn_heading: Send Transaction
clear_reset_heading: Clear & Reset
- ignore_form_errors: Allow forms to be submitted with errors
+ disallow_form_errors: Do not allow forms to be submitted with errors
default_use_sug_fee: Set fee automatically by default
default_use_sug_rounds: Set valid rounds automatically by default
get_asset_info: Retrieve asset information when asset ID is entered
diff --git a/src/app/i18n/locales/es/app.yml b/src/app/i18n/locales/es/app.yml
index 4bda309c..9f9db57f 100644
--- a/src/app/i18n/locales/es/app.yml
+++ b/src/app/i18n/locales/es/app.yml
@@ -32,7 +32,7 @@ settings:
sign_txn_heading: Firmar transacción
send_txn_heading: Enviar transacción
clear_reset_heading: Borrar y restablecer
- ignore_form_errors: Permitir que los formularios se envíen con errores
+ disallow_form_errors: No permita que se envíen formularios con errores
default_use_sug_fee: Fijar la tarifa automáticamente por defecto
default_use_sug_rounds: Establecer rondas válidas automáticamente por defecto
get_asset_info: Obtener información sobre activos cuando se introduce la identificación del activo
diff --git a/src/app/lib/app-settings.ts b/src/app/lib/app-settings.ts
index 623716cf..01bf2f1f 100644
--- a/src/app/lib/app-settings.ts
+++ b/src/app/lib/app-settings.ts
@@ -19,10 +19,10 @@ export enum Themes {
export const defaults = {
/** Theme (default: `""` - automatic) */
theme: Themes.auto,
- /** Ignore form validation errors when submitting a form (like the "compose transaction" form)?
- * (default: `false` - Do not ignore)
+ /** Do not allow a form (like the "compose transaction" form) to be submitted with errors?
+ * (default: `true` - Do not allow form to be submitted with errors)
*/
- ignoreFormErrors: false,
+ disallowFormErrors: true,
/** Use the suggested fee by default? */
defaultUseSugFee: true,
/** Use the suggested first & last valid round by default? */
@@ -49,9 +49,9 @@ export const defaults = {
/** Theme mode */
export const themeAtom = atomWithStorage
('theme', defaults.theme, storage);
-/** Ignore validation errors? */
-export const ignoreFormErrorsAtom =
- atomWithStorage('ignoreFormErrors', defaults.ignoreFormErrors, storage);
+/** Do not allow a form (like the "compose transaction" form) to be submitted with errors? */
+export const disallowFormErrorsAtom =
+ atomWithStorage('disallowFormErrors', defaults.disallowFormErrors, storage);
/** Use suggested fee by default? */
export const defaultUseSugFee =
atomWithStorage('defaultUseSugFee', defaults.defaultUseSugFee, storage);