mirror of
https://github.com/voltbonn/profile-picture-generator.git
synced 2024-12-22 07:45:04 +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 => {
|
||||
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>
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue