Skip to content

Commit 86aa759

Browse files
committed
Fix: some bugs
1 parent 70be076 commit 86aa759

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

server/controllers/tasks_controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
const dbInstance = req.app.get('db')
44

55

6-
dbInstance.addNewCard([req.body.projectID, req.body.card, 1])
6+
dbInstance.addNewCard([req.body.projectID, req.body.card, req.user.id])
77
.then(response => {
88
res.status(200).send(response)})
99

src/components/LandingPage/LoginModal/LoginModal.js

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class LoginModal extends Component {
2828
<input
2929
className="input login-input"
3030
placeholder="Password"
31+
type="password"
3132
onChange={e =>
3233
this.props.updatePasswordInputField(e.target.value)
3334
}

src/ducks/reducers/projectViewReducer.js

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export function cardInput(e) {
8585
}
8686
}
8787
export function addCard(card, projectID) {
88+
console.log('in reducer')
8889
return {
8990
type: NEW_CARD,
9091
payload: axios.post('/api/newCard', { card, projectID }).then(res => {

0 commit comments

Comments
 (0)