Skip to content

Commit

Permalink
style: format code with prettier and fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 29, 2024
1 parent 5ce6b6d commit f4e8494
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions client/src/components/Chat/MessageList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ const MessageList = ({

function getRepliedMessage(replyTo) {
return decryptedMessages.find((object) => object.id === replyTo);
}
}

console.log(decryptedMessages)
console.log(decryptedMessages);

return (
decryptedMessages &&
Expand Down Expand Up @@ -156,7 +156,9 @@ const MessageList = ({
__html: md.render(
badwordChoices[id] === 'hide'
? badwords.filter(message)
: badwordChoices[id] === 'show' ? message : message
: badwordChoices[id] === 'show'
? message
: message
),
}}
/>
Expand Down Expand Up @@ -199,9 +201,9 @@ const MessageList = ({
export default MessageList;

MessageList.propTypes = {
decryptedMessages: PropTypes.array,
decryptedMessages: PropTypes.array,
senderId: PropTypes.string.isRequired,
currentReplyMessageId: PropTypes.string,
currentReplyMessageId: PropTypes.string,
doSend: PropTypes.func.isRequired,
inputRef: PropTypes.object.isRequired,
cancelEdit: PropTypes.func.isRequired,
Expand Down

0 comments on commit f4e8494

Please sign in to comment.