purxiz / deckollab

0 stars 1 forks source link

Add numbers before duplicate cards #6

Open purxiz opened 4 years ago

purxiz commented 4 years ago

Instead of simply pushing a new card onto the deck array whenever a card is added, check if that card is already in the array, and if so increment it's count variable. Display duplicate cards in one list_item with a number prepended according to count. Similarly, on the server side, increment a count variable instead of storing duplicate uuids.