From 9f07209bf9a808ec53e11058150f7e48493a2ffa Mon Sep 17 00:00:00 2001 From: Jayesh Mangwani Date: Tue, 19 Sep 2023 10:58:19 +0530 Subject: [PATCH] trim privateNote value before API call --- src/pages/PrivateNotes/PrivateNotesEditPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/PrivateNotes/PrivateNotesEditPage.js b/src/pages/PrivateNotes/PrivateNotesEditPage.js index 4cada83941ac..a5b8b137da5f 100644 --- a/src/pages/PrivateNotes/PrivateNotesEditPage.js +++ b/src/pages/PrivateNotes/PrivateNotesEditPage.js @@ -67,7 +67,7 @@ function PrivateNotesEditPage({route, personalDetailsList, session, report}) { const privateNotesInput = useRef(null); const savePrivateNote = () => { - const editedNote = parser.replace(privateNote); + const editedNote = parser.replace(privateNote.trim()); Report.updatePrivateNotes(report.reportID, route.params.accountID, editedNote); Keyboard.dismiss();