luceroweb / karot-saving-smart

Millions of us are living paycheck to paycheck. It can be difficult to build a budget that helps you pay for your bills as well as plan for the future - without making you feel like you have to do without. You may have heard about the tried and true cash “Envelope Savings” system, which can help you to make sure you always have enough to pay your b
https://karot-saving-smart.netlify.app/
3 stars 13 forks source link

Db 62 bug edit fillin value #101

Closed darlanebrown closed 2 years ago

darlanebrown commented 2 years ago

Changes

  1. Item 1-Installed the UUID, which corrects the bug so that when you edit an account, the correct values are displayed in the modal.
  2. Item 2-UUID keeps the accounts in the same order

Purpose

When multiple accounts are edited, the account modal fields are not updated correctly. The second account edited will show the values from the first account edited rather than updating with the values from the account

Learning

I researched how to solve the sort order problem, and found that adding a UUID as the account ID was the best method. You can then create, modify or update an account without any sort order issues.

Node UUID Package https://www.npmjs.com/package/uuid

Closes #62, #78