JasonCostanza / Dice-Vault

Talespire symbiote for better dice rolling
2 stars 1 forks source link

Loading from local storage can result in duplicate entries #45

Open JasonCostanza opened 3 months ago

JasonCostanza commented 3 months ago

Describe the bug Example, have a saved localstorage list of 3 items. Delete 1 of them, then select "Load". You will get new copies of 1-2 and a unique 3rd because it's loading the entire list without skipping items that are still remaining.

To Reproduce Steps to reproduce the behavior:

  1. Save 2-3 saved rolls
  2. Delete some portion of the rolls but not all of them
  3. Select Load

Expected behavior It loads only the missing options

Additional context Add any other context about the problem here.

Screenshots If applicable, add screenshots to help explain your problem.