fix key property
This commit is contained in:
parent
22c34ce484
commit
74c0ed1de0
@ -24,10 +24,9 @@ export const TextOutput = () => {
|
||||
const isSentenceStart = sentences.includes(wordBeginning)
|
||||
|
||||
return (
|
||||
<>
|
||||
<span key={idx}>
|
||||
{isWordStart && ' '}
|
||||
<span
|
||||
key={idx}
|
||||
className={classNames({
|
||||
[styles.current]: isCurrent,
|
||||
[styles.sentenceBeginning]: isSentenceStart
|
||||
@ -35,7 +34,7 @@ export const TextOutput = () => {
|
||||
>
|
||||
{segment}
|
||||
</span>
|
||||
</>
|
||||
</span>
|
||||
)
|
||||
})}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user