mirror of
https://github.com/voltbonn/profile-picture-generator.git
synced 2024-12-21 23:35:05 +00:00
moved parsing the hashtags directly into the array
This is to prevent eslint errors.
This commit is contained in:
parent
0bd7cb6e2d
commit
c71b11d217
1 changed files with 5 additions and 6 deletions
|
@ -11,15 +11,14 @@ function HashtagChooser({ onChange, getString }) {
|
|||
|
||||
useEffect(() => {
|
||||
async function loadFrames() {
|
||||
|
||||
hashtags = hashtags.split('\n')
|
||||
.map(tag => tag.trim())
|
||||
.filter(tag => tag.length > 0)
|
||||
|
||||
Promise.all(
|
||||
[
|
||||
'',
|
||||
...hashtags
|
||||
...(
|
||||
hashtags.split('\n')
|
||||
.map(tag => tag.trim())
|
||||
.filter(tag => tag.length > 0)
|
||||
)
|
||||
]
|
||||
.map(async frame_filename => {
|
||||
let src = frame_filename
|
||||
|
|
Loading…
Reference in a new issue