From 24a291bcfe7e4e12a5b3c5f65261386a72a5a6ef Mon Sep 17 00:00:00 2001 From: Sibtain Ali Date: Sun, 23 Apr 2023 15:52:39 +0500 Subject: [PATCH] fix: trim the content --- src/libs/actions/IOU.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/IOU.js b/src/libs/actions/IOU.js index 4b6415bae599..050c1b0e7f6b 100644 --- a/src/libs/actions/IOU.js +++ b/src/libs/actions/IOU.js @@ -642,7 +642,7 @@ function setIOUSelectedCurrency(selectedCurrencyCode) { * @param {String} comment */ function setMoneyRequestDescription(comment) { - Onyx.merge(ONYXKEYS.IOU, {comment}); + Onyx.merge(ONYXKEYS.IOU, {comment: comment.trim()}); } /**