mirror of
https://github.com/jcreek/EstimationPoker.git
synced 2026-07-12 18:43:47 +00:00
feat(*): Enable shield for tristan only for poop
This commit is contained in:
@@ -16,8 +16,8 @@
|
|||||||
// Get the user from the cardId
|
// Get the user from the cardId
|
||||||
let user = users.find((user) => `user-card-${user.userId}` === cardId);
|
let user = users.find((user) => `user-card-${user.userId}` === cardId);
|
||||||
|
|
||||||
// If the user is Tristan, activate the shield
|
// If the user is Tristan and the selected emoji is poop, activate the shield
|
||||||
if (user && user.name === 'Tristan') {
|
if (user && user.name === 'Tristan' && customEmoji === '💩') {
|
||||||
shieldActive = true;
|
shieldActive = true;
|
||||||
|
|
||||||
// After 2 seconds, remove the shield
|
// After 2 seconds, remove the shield
|
||||||
@@ -98,7 +98,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<EmojiPicker on:emojiSelected="{handleEmojiSelected}" />
|
<EmojiPicker on:emojiSelected={handleEmojiSelected} />
|
||||||
|
|
||||||
<div id="users-list">
|
<div id="users-list">
|
||||||
<div class="users-container">
|
<div class="users-container">
|
||||||
|
|||||||
Reference in New Issue
Block a user