diff --git a/client/src/App.tsx b/client/src/App.tsx index 530306b..793df57 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -541,19 +541,12 @@ function App() { } {login} {userPayload.departureTime && ({userPayload.departureTime})} - {userPayload.note && copyNote(userPayload.note!)} - onKeyDown={(e) => { - if (e.key === 'Enter' || e.key === ' ') { - e.preventDefault(); - copyNote(userPayload.note!); - } - }} - tabIndex={0} - role="button" - > ({userPayload.note}) } + {userPayload.note && ({userPayload.note})} + {login !== auth.login && canChangeChoice && + { + copyNote(userPayload.note!); + }} className='action-icon' icon={faComment} /> + } {login === auth.login && canChangeChoice && { setNoteModalOpen(true);