Skip to content

Commit

Permalink
Add missing edit condition
Browse files Browse the repository at this point in the history
  • Loading branch information
redstar504 committed Feb 6, 2023
1 parent b418a11 commit 31f8dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionItemMessageEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class ReportActionItemMessageEdit extends React.Component {
*/
publishDraft() {
// Do nothing if draft exceed the character limit
if (this.state.draft.length > CONST.MAX_COMMENT_LENGTH) {
if (ReportUtils.commentLength(this.state.draft) > CONST.MAX_COMMENT_LENGTH) {
return;
}

Expand Down

0 comments on commit 31f8dc4

Please sign in to comment.