Skip to content

Commit

Permalink
Update store.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nallave authored Nov 25, 2024
1 parent b94b035 commit aa1961e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/palm/web/quick-prompt/src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ const useStore = create((set, get) => ({

actions.playSound('sounds/forbidden-word.mp3')

// Sort matches by their indicies in the passed `text` so the words in `forbiddenPopup` appear in the correct order
// Sort matches by their indices in the passed `text` so the words in `forbiddenPopup` appear in the correct order
matches.sort((a, b) => {
const aIndex = text.indexOf(a)
const bIndex = text.indexOf(b)
Expand Down

0 comments on commit aa1961e

Please sign in to comment.