Skip to content

Commit

Permalink
fix: minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Carol Sachdeva committed Feb 25, 2022
1 parent 9a4157b commit 216db99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/p2p/src/components/buy-sell/buy-sell-form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ const BuySellForm = props => {
>
{({ errors, isSubmitting, isValid, setFieldValue, submitForm, touched, values }) => {
buy_sell_store.form_props.setIsSubmitDisabled(
!isValid || isSubmitting || (buy_sell_store.is_sell_advert && selected_methods.length < 1)
!isValid ||
isSubmitting ||
(buy_sell_store.is_sell_advert && payment_method_names && selected_methods.length < 1)
);
buy_sell_store.form_props.setSubmitForm(submitForm);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ const EditPaymentMethodForm = () => {
const validateFields = values => {
const errors = {};
const no_symbols_regex = /^[a-zA-Z0-9\\\s.@_+-]+$/;
const no_symbols_message = localize('Special characters are not allowed to use.');
const no_symbols_message = localize(
'This field can only include letters, numbers, spaces, and any of these symbols: -+._@'
);
const max_characters_error_message = localize('This field has exceeded maximum length of 200 characters.');

if (values.account) {
Expand Down

0 comments on commit 216db99

Please sign in to comment.