From a4e573d5b97901c40c03f2eefd646f797078bb3f Mon Sep 17 00:00:00 2001
From: Josh Creek <8179928+jcreek@users.noreply.github.com>
Date: Tue, 11 Jul 2023 21:24:05 +0000
Subject: [PATCH] feat(*): Enable shield for tristan only for poop
---
src/components/UsersList.svelte | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/components/UsersList.svelte b/src/components/UsersList.svelte
index 2311d96..49b5fab 100644
--- a/src/components/UsersList.svelte
+++ b/src/components/UsersList.svelte
@@ -9,15 +9,15 @@
let shieldActive = false;
const handleEmojiSelected = (event) => {
- customEmoji = event.detail.emoji;
- };
+ customEmoji = event.detail.emoji;
+ };
function handleCardClick(cardId) {
// Get the user from the cardId
let user = users.find((user) => `user-card-${user.userId}` === cardId);
- // If the user is Tristan, activate the shield
- if (user && user.name === 'Tristan') {
+ // If the user is Tristan and the selected emoji is poop, activate the shield
+ if (user && user.name === 'Tristan' && customEmoji === '💩') {
shieldActive = true;
// After 2 seconds, remove the shield
@@ -98,7 +98,7 @@
}
-