From 2fcbb26feee897df57684d7b7518f0db102c41ca Mon Sep 17 00:00:00 2001 From: AlecM33 Date: Sat, 11 Jun 2022 20:00:58 -0400 Subject: [PATCH] lint --- client/src/modules/DeckStateManager.js | 8 ++++---- client/src/modules/RoleBox.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/src/modules/DeckStateManager.js b/client/src/modules/DeckStateManager.js index e6cac6d..25b6217 100644 --- a/client/src/modules/DeckStateManager.js +++ b/client/src/modules/DeckStateManager.js @@ -1,6 +1,6 @@ import { globals } from '../config/globals.js'; import { HTMLFragments } from './HTMLFragments.js'; -import {toast} from "./Toast"; +import { toast } from './Toast'; export class DeckStateManager { constructor () { @@ -40,7 +40,7 @@ export class DeckStateManager { ); } - getQuantityOfRole(role) { + getQuantityOfRole (role) { return this.deck.find( (card) => card.role.toLowerCase().trim() === role.toLowerCase().trim() )?.quantity; @@ -88,8 +88,8 @@ export class DeckStateManager { if (e.type === 'click' || e.code === 'Enter') { e.preventDefault(); toast( - `-1` - + sortedDeck[i].role + ' (' + (sortedDeck[i].quantity - 1).toString() + ')', + '-1' + + sortedDeck[i].role + ' (' + (sortedDeck[i].quantity - 1).toString() + ')', 'neutral', true, true, diff --git a/client/src/modules/RoleBox.js b/client/src/modules/RoleBox.js index 75878a3..82eeee7 100644 --- a/client/src/modules/RoleBox.js +++ b/client/src/modules/RoleBox.js @@ -200,8 +200,8 @@ export class RoleBox { this.deckManager.addCopyOfCard(name); } toast( - '+1 ' - + name + ' (' + this.deckManager.getQuantityOfRole(name) + ')', + '+1 ' + + name + ' (' + this.deckManager.getQuantityOfRole(name) + ')', 'neutral', true, true,