Skip to content

Commit

Permalink
Merge pull request #22 from dankore/edit-bid
Browse files Browse the repository at this point in the history
Edit bid
  • Loading branch information
dankore committed Jun 22, 2020
2 parents efaa424 + e18ed05 commit f669a32
Show file tree
Hide file tree
Showing 4 changed files with 398 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const CreateBid = lazy(()=> import('./pages/CreateBid'));
const ViewSingleBid = lazy(()=> import('./pages/ViewSingleBid'));
import PrivacyPolicyPage from './pages/PrivacyPolicyPage';
import LoadingDotsIcon from './components/LoadingDotsIcon';
import EditBidPage from './pages/EditBidPage';
// COMPONENTS END

function Main() {
Expand Down Expand Up @@ -162,6 +163,9 @@ function Main() {
</Route>
<Route path='/:projectId/bid/:bidId'>
<ViewSingleBid />
</Route>
<Route path='/bid/:projectId/:bidId/edit'>
{state.loggedIn ? <EditBidPage /> : <YouMustBeLoggedInToViewThisPage />}
</Route>
<Route path='/create-bid/:id' exact>
{state.loggedIn ? <CreateBid /> : <YouMustBeLoggedInToViewThisPage />}
Expand Down
2 changes: 1 addition & 1 deletion app/pages/CreateBid.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function CreateBid(props) {
draft.yearsOfExperience.value = action.value;
return;
case 'yearsExperienceUpdateRules':
if (draft.yearsOfExperience.value == 0) {
if (draft.yearsOfExperience.value < 0) {
draft.yearsOfExperience.hasErrors = true;
draft.yearsOfExperience.message = 'Years of experience required.';
}
Expand Down
Loading

0 comments on commit f669a32

Please sign in to comment.