dsfai2020 / Task-and-Nutrition-Manager

An agile planning application that tracks tasks, ideas and nutrition goals. This app is designed to assist with everyday productivity, progress tracking and fitness.
1 stars 0 forks source link

Description saves to the local storage are omitting the last letter. #63

Open dsfai2020 opened 5 months ago

dsfai2020 commented 5 months ago

Describe the bug The problem is that the last letter of whatever I type in the description doesn't save to the local storage. For example, if I typed in the word 'environment' only the letters up to the 'n' would save in the local storage. The description on the actual card itself however, would still display the full word.

To Reproduce Steps to reproduce the behavior:

  1. Go to any card
  2. Click on the description button and type in some text.
  3. Scroll down to the bottom of the screen. Press control shift I. Go into the local storage to verify the changes.
  4. See error that the description does not match up with what is on the actual screen.

Expected behavior I want the cards to save the entire description into the local storage.

Screenshots image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context The UI saves a key to the local storage based on the index value it has using props and a mechanic that incrementally increases the index every time a card is made. The updates to the description properly update each card correctly. The cards have temporary names at the moment called uiBackEnd and it assigns a number to itself using the key as well.