Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global: Fixes wording of error-messages. #565

Merged
merged 2 commits into from
Aug 1, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/components/FormFeedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const ACTIONS = {
[FILE_IMPORT_FAILED]: {
feedback: "negative",
message: i18next.t(
"Oops, something went wrong! Importing files from the previous draft version failed. Please try again. If the problem persists, contact user support."
"Oops, something went wrong! Importing files from the previous version failed. Please try again. If the problem persists, contact user support."
),
},
};
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/Funding/FundingModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const CustomFundingSchema = Yup.object().shape({
},
}),
url: Yup.string()
.url(i18next.t("Url must be a valid url."))
.url(i18next.t("Url must be valid."))
lnielsen marked this conversation as resolved.
Show resolved Hide resolved
.test({
name: "validateUrlDependencies",
message: i18next.t("Url must be set alongside title and number."),
Expand Down
8 changes: 2 additions & 6 deletions src/lib/components/PublishButton/SubmitReviewModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@ import * as Yup from "yup";

export class SubmitReviewModal extends Component {
ConfirmSubmitReviewSchema = Yup.object({
acceptAccessToRecord: Yup.string().required(
i18next.t("You must click and accept this.")
),
acceptAfterPublishRecord: Yup.string().required(
i18next.t("You must click and accept this.")
),
acceptAccessToRecord: Yup.string().required(i18next.t("You must accept this.")),
acceptAfterPublishRecord: Yup.string().required(i18next.t("You must accept this.")),
reviewComment: Yup.string(),
});

Expand Down