Skip to content

Commit

Permalink
Fix type suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
jahongiry committed Mar 1, 2024
1 parent 91651fb commit af3349c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/chat/Chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ const Chat = () => {
: 'long-message';
};

const randomId = Math.random().toString(36).substring(2, 15);

return (
<div className='chat-page-main'>
<ChatHeader sender={chatUsers} />
Expand Down Expand Up @@ -125,16 +127,15 @@ const Chat = () => {
/>
)
) : null}

<form className='form-chat' onSubmit={handleSubmit}>
<div className='hamburger-chat' onClick={togglePopup}>
<img src={hamburger} alt='hamburger button' />
</div>
<div className='input-container'>
<input
name='chat-text'
name={`chat-text-${randomId}`}
type='text'
id='username'
id={`chat-text-${randomId}`}
value={inputValue}
onChange={(e) => setInputValue(e.target.value)}
autoComplete='off'
Expand Down

0 comments on commit af3349c

Please sign in to comment.