Commit a357f3fd authored by Kushal Pandya's avatar Kushal Pandya

Merge branch '212377-user-can-double-award-emoji' into 'master'

Fixed issue with award as a number

See merge request gitlab-org/gitlab!28114
parents 6ee0245d a00ff5ac
...@@ -169,7 +169,7 @@ export default { ...@@ -169,7 +169,7 @@ export default {
const { id, name, username } = state.userData; const { id, name, username } = state.userData;
const hasEmojiAwardedByCurrentUser = note.award_emoji.filter( const hasEmojiAwardedByCurrentUser = note.award_emoji.filter(
emoji => emoji.name === data.awardName && emoji.user.id === id, emoji => `${emoji.name}` === `${data.awardName}` && emoji.user.id === id,
); );
if (hasEmojiAwardedByCurrentUser.length) { if (hasEmojiAwardedByCurrentUser.length) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment