1
0
Fork 0
mirror of https://github.com/voltbonn/profile-picture-generator.git synced 2024-12-22 15:55:08 +00:00

BUGFIX use unique keys in the hashtag-chooser

This commit is contained in:
thomasrosen 2021-01-23 21:47:53 +01:00
parent 5b353b90ff
commit 9d145f63bf

View file

@ -51,7 +51,7 @@ function HashtagChooser({ onChange, getString }) {
frames.map(frame => {
const frame_src_path = frame.src.default
const isChoosen = choosenFrame === frame_src_path
return <button key={frame_src_path} data-src={frame_src_path} className={isChoosen ? 'hashtag_button choosen' : 'hashtag_button'} onClick={handleImageChoosing}>
return <button key={frame.name} data-src={frame_src_path} className={isChoosen ? 'hashtag_button choosen' : 'hashtag_button'} onClick={handleImageChoosing}>
{frame.name === '' ? getString('button_no_hashtag') : '#'+frame.name}
</button>
})