update local storage when the favourite products object changes