Skip to content

Commit

Permalink
Merge pull request #298 from all-rit/297-lab-5-quotation-marks
Browse files Browse the repository at this point in the history
[#297] Updating repair quotation marks
  • Loading branch information
heathermoses committed Apr 9, 2024
2 parents 13dca43 + 7cca9ad commit 50bad58
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,15 @@ class FormRepair extends Component {
Object.keys(this.state).map((name) => {
switch (name) {
case "errorNotification":
if (this.state[name] !== "Please enter in format: YYYY-MM-DD") {
console.log(this.state[name]);
if (
this.state[name] !== '"Please enter in format: YYYY-MM-DD"' &&
this.state[name] !== "'Please enter in format: YYYY-MM-DD'"
) {
error = true;
this.setState({
errorNotificationerror:
"Must enter 'Please enter in format: YYYY-MM-DD'",
'Must enter "Please enter in format: YYYY-MM-DD"',
});
} else {
this.setState({ errorNotificationerror: null });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ class PageLayoutRepair extends Component {
}
break;
case "classvalue":
if (this.state[name] !== "'body'") {
if (this.state[name] !== '"body"' && this.state[name] !== "'body'") {
error = true;
this.setState({ classerror: "Must enter 'body'" });
this.setState({ classerror: 'Must enter "body"' });
} else {
this.setState({ classerror: null });
}
Expand Down Expand Up @@ -307,7 +307,7 @@ class PageLayoutRepair extends Component {
<div className="code_editor__line">
<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
<span className="code_editor__line--darkgreen">
&#47;&#47;Enter 'body' into the input below
&#47;&#47;Enter "body" into the input below
</span>
</div>
<div className="code_editor__line code_editor__line-background--light">
Expand Down

0 comments on commit 50bad58

Please sign in to comment.