Need help with a toggle updating + adding to another collection




So when the user turns the toggle on, I want to update the current selected item(chord), it should be added to the user’s selected chords, then these selected chords should ba added as well to a another (temporary) chord trainer collection. If the user turns the toggle of, I want the chord to be updated to “not selected” and removed from the chord trainer collection. I made it work in the past but can’t seem to make it work anymore