adobe / adobe/alloy-samples

Function getPersonalizationPayloads() in common/personalization.js returns 1 item instead of all.

Open
#26 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
16
Forks
19
PR merge metrics
No merged PRs in 30d

Description

I noticed that this function is using "find()" instead of "filter()". find() will return the first item instead of all items.

Contributor guide

Open the contributing guide

Research direction

Open common/personalization.js and inspect getPersonalizationPayloads(). Verify how the current find() call selects one item, then confirm that the function returns all matching items as requested by the issue. Done means the function no longer limits the result to the first item.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.