Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parsing percentages in chat #661

Merged
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion GUI/src/components/HistoricalChat/ChatMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const ChatMessage: FC<ChatMessageProps> = ({ message, onMessageClick }) => {
className="historical-chat__message-text"
onClick={onMessageClick ? () => onMessageClick(message) : undefined}
>
<Linkifier message={decodeURIComponent(message.content ?? '')} />
<Linkifier message={message.content ?? ''} />
</button>
<time
dateTime={message.authorTimestamp}
Expand Down
1 change: 1 addition & 0 deletions GUI/src/components/HistoricalChat/HistoricalChat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
justify-content: flex-end;
position: relative;
height: 100%;
white-space: pre-wrap;

&__body {
flex: 1;
Expand Down
2 changes: 1 addition & 1 deletion GUI/src/components/HistoricalChat/NewExampleModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const NewExampleModal: FC<NewExampleModalProps> = ({ message, setMessage, onSubm
}
>
<Track direction='vertical' gap={16} align='left'>
<FormInput {...register('example')} label={t('training.intents.example')} defaultValue={decodeURIComponent(message.content || '')} />
<FormInput {...register('example')} label={t('training.intents.example')} defaultValue={message.content || ''} />
{intents && !isNewIntent && (
<Controller
disabled={true}
Expand Down
2 changes: 1 addition & 1 deletion GUI/src/components/HistoricalChat/NewResponseModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const NewResponseModal: FC<NewResponseModalProps> = ({ message, setMessage, onSu
minLength: {
value: 1,
message: 'Text cant be empty'
}})} label={t('training.responses.response')} defaultValue={decodeURIComponent(message.content || '')} />
}})} label={t('training.responses.response')} defaultValue={message.content || ''} />
</Track>
</Dialog>
);
Expand Down