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.
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.