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:
parent
5b353b90ff
commit
9d145f63bf
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ function HashtagChooser({ onChange, getString }) {
|
||||||
frames.map(frame => {
|
frames.map(frame => {
|
||||||
const frame_src_path = frame.src.default
|
const frame_src_path = frame.src.default
|
||||||
const isChoosen = choosenFrame === frame_src_path
|
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}
|
{frame.name === '' ? getString('button_no_hashtag') : '#'+frame.name}
|
||||||
</button>
|
</button>
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue