Skip to content

Commit

Permalink
fix(challenge modal): special characters couldn't get rendered in pos…
Browse files Browse the repository at this point in the history
…t content preview
  • Loading branch information
plebeius-eth committed Feb 20, 2024
1 parent 04c10b3 commit 9d2c01d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/challenge-modal/challenge-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ const Challenge = ({ challenge, closeModal }: ChallengeProps) => {
<div className={styles.title}>{t('challenge_from', { subplebbit: shortSubplebbitAddress || subplebbitAddress })}</div>
<div className={styles.subTitle}>
{publicationType === 'vote' && votePreview + ' '}
{parentCid ? t('challenge_for_reply', { parentAddress, publicationContent }) : t('challenge_for_post', { publicationContent })}
{parentCid
? t('challenge_for_reply', { parentAddress, publicationContent, interpolation: { escapeValue: false } })
: t('challenge_for_post', { publicationContent, interpolation: { escapeValue: false } })}
</div>
<div className={styles.challengeMediaWrapper}>
{isTextChallenge && <div className={styles.challengeMedia}>{challenges[currentChallengeIndex]?.challenge}</div>}
Expand Down

0 comments on commit 9d2c01d

Please sign in to comment.