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,