Skip to content

Commit

Permalink
fix(modal): remove <mark> tag from content
Browse files Browse the repository at this point in the history
  • Loading branch information
tfkhdyt committed Jul 6, 2024
1 parent 1eac41c commit 8549162
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/_components/modals/answer-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export function AnswerModal({
</div>
</div>
<p className='line-clamp-4 whitespace-pre-wrap text-left text-sm leading-relaxed text-[#696984]'>
{question.content}
{question.content.replace(/<\/?mark>/g, '')}
</p>
<div className='flex justify-start'>
<Link
Expand Down
2 changes: 1 addition & 1 deletion src/app/_components/modals/ask-ai-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function AskAIModal({
</div>
</div>
<p className='line-clamp-4 whitespace-pre-wrap text-left text-sm leading-relaxed text-[#696984]'>
{question.content}
{question.content.replace(/<\/?mark>/g, '')}
</p>
<div className='flex justify-start'>
<Link
Expand Down

0 comments on commit 8549162

Please sign in to comment.