diff --git a/src/actions/notes.js b/src/actions/notes.js index 04362abded024bf05f5e633f1948309eca9e4ca6..52074a95d7895acef46e4a0d9ffa8aa783c943b5 100644 --- a/src/actions/notes.js +++ b/src/actions/notes.js @@ -29,7 +29,7 @@ export const postEventNote = ({ eventid, userid, note }) => ( try { const response = await axios.post('/api/v1/notes/', { event: eventid ? eventid : '', - profile: userid ? eventid : '', + profile: userid ? userid : '', note, }); if (response.data.id) { diff --git a/src/components/pages/TraineeTableRow.js b/src/components/pages/TraineeTableRow.js index 2fc9e68a7a54bcf5d60b09a1d2bb1d2c5db8049b..05fbc52460b13e53a06033e610fa63a092c80a0d 100644 --- a/src/components/pages/TraineeTableRow.js +++ b/src/components/pages/TraineeTableRow.js @@ -81,8 +81,8 @@ class TraineeTableRow extends Component { <Comment> <Comment.Content> <Comment.Author><b>{notes[0].created_by_name}:</b></Comment.Author> - <Comment.Text> - {notes[0].note.length > 30 ? notes[0].note.slice(0, 50).concat('...') + <Comment.Text style={{wordWrap: 'break-word'}}> + {notes[0].note.length > 25 ? notes[0].note.slice(0, 25).concat('...') : notes[0].note } </Comment.Text> @@ -102,7 +102,7 @@ class TraineeTableRow extends Component { content={notes.map((note) => { return ( <Comment.Content> - <Comment.Author>{note.created_by_name}</Comment.Author> + <Comment.Author><b>{note.created_by_name}:</b></Comment.Author> <Comment.Text> {note.note} </Comment.Text>