data gets added to local storage but with error

and data is shown, but can not be cleared... still debugging