Created
April 21, 2021 13:55
-
-
Save bastienapp/8f5500aaf4acf300e4c72e4dd82abcf3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Rewards = { | |
rewardList: [ | |
{ | |
id: 1, | |
title: "dvssvzev", | |
selected: false, | |
}, | |
{ | |
id: 2, | |
title: "dvssvzev", | |
selected: false, | |
}, | |
{ | |
id: 3, | |
title: "dvssvzev", | |
selected: false, | |
} | |
], | |
selectReward(id) { | |
this.rewardList.find((reward) => reward.id === id).selected = true; | |
} | |
} | |
export default Rewards; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Merci :)