It does not look like the error happends in the code you posted.
You can check your localStorage, by typing in the console: localStorage.
Look for the localstorage you are talking about and check at which point of your app it is multiplied.