Skip to content

Commit

Permalink
Update src/pages/home/report/ReportActionCompose/SendButton.js
Browse files Browse the repository at this point in the history
Co-authored-by: Vit Horacek <36083550+mountiny@users.noreply.github.com>
  • Loading branch information
hannojg and mountiny authored Aug 24, 2023
1 parent cf6cf7a commit 6ab1ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionCompose/SendButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function SendButton({isDisabled: isDisabledProp, animatedRef, setIsCommentEmpty,
const viewTag = animatedRef();
const viewName = 'RCTMultilineTextInputView';
const updates = {text: ''};
// we are setting the isCommentEmpty flag to true so the status of it will be in sync of the native text input state
// We are setting the isCommentEmpty flag to true so the status of it will be in sync of the native text input state
runOnJS(setIsCommentEmpty)(true);
updatePropsPaperWorklet(viewTag, viewName, updates); // clears native text input on the UI thread
runOnJS(submitForm)();
Expand Down

0 comments on commit 6ab1ccf

Please sign in to comment.