Skip to content

Commit 7ec08f9

Browse files
authored
Merge pull request #50 from CodeYourFuture/design/media
fix bug, validation form
2 parents 423bb07 + c8332a5 commit 7ec08f9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Components/forms/index.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
border-bottom: 0.01px solid rgb(194, 193, 193);
7979
}
8080
.form-table-tr-is-empty {
81-
border-bottom: 1px solid rgb(250, 26, 26);
81+
border: 1px solid rgb(250, 26, 26) !important;
8282
}
8383
.form-table-td {
8484
padding: 0% !important;
@@ -165,7 +165,7 @@
165165
width: 30%;
166166
}
167167
.form-table-tr-media {
168-
border: 1px solid rgb(194, 193, 193) !important;
168+
border: 1px solid rgb(194, 193, 193);
169169
width: 100% !important;
170170
margin: 10px 0;
171171
padding: 20px;

src/Components/forms/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ class Forms extends Component {
8888
guidePeople,
8989
techSkill,
9090
otherSkill,
91-
valuationError,
9291
acknowledgement
9392
} = this.state
93+
9494
const validatedInputs = this.validateForm({
9595
firstName,
9696
lastName,
@@ -102,6 +102,7 @@ class Forms extends Component {
102102
})
103103
await this.validateArray({ guidePeople, techSkill, otherSkill })
104104
const emptyValues = validatedInputs.includes(true)
105+
const { valuationError } = this.state
105106
if (emptyValues || valuationError) {
106107
this.setState({ formInComplete: true })
107108
}

0 commit comments

Comments
 (0)