🩹(frontend) fix missing key in reactions toolbar

Emojis are a constant, so the reaction index remains stable,
but using the index as a key isn't ideal.
This commit is contained in:
lebaudantoine
2025-02-22 17:35:13 +01:00
committed by aleb_the_flash
parent 0498a9e7f9
commit 25506b6a2a

View File

@@ -69,8 +69,9 @@ export const ReactionsToggle = () => {
display: 'flex',
})}
>
{EMOJIS.map((emoji) => (
{EMOJIS.map((emoji, index) => (
<Button
key={index}
onPress={() => sendReaction(emoji)}
aria-label={t('send', { emoji })}
variant="quaternaryText"