Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@ import ONYXKEYS from '../../ONYXKEYS';

/**
* Sets the upload receipt error modal content when an invalid receipt is uploaded
*
* @param {Boolean} isAttachmentInvalid
* @param {String} attachmentInvalidReasonTitle
* @param {String} attachmentInvalidReason
*/
function setUploadReceiptError(isAttachmentInvalid, attachmentInvalidReasonTitle, attachmentInvalidReason) {
function setUploadReceiptError(isAttachmentInvalid: boolean, attachmentInvalidReasonTitle: string, attachmentInvalidReason: string) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need to specify the return type? void in this case (same for the other function)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to guidelines, I think this function is simple enough that we don't need to specify return type

Onyx.merge(ONYXKEYS.RECEIPT_MODAL, {
isAttachmentInvalid,
attachmentInvalidReasonTitle,
Expand Down