Skip to content

Instantly share code, notes, and snippets.

@andregardi
Created September 12, 2020 13:40
Show Gist options
  • Save andregardi/f4ee4cd89029757b9994507de2a3adaf to your computer and use it in GitHub Desktop.
Save andregardi/f4ee4cd89029757b9994507de2a3adaf to your computer and use it in GitHub Desktop.
export const changeWeatherDescription = (store, description) => {
store.setState((state) => {
state.cities[0].weatherStatus.current.weather[0].description = description;
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment