Skip to content

Instantly share code, notes, and snippets.

@JamesHusband
Created November 21, 2019 15:22
Show Gist options
  • Save JamesHusband/781e527aa5ffca89cb9bc9c0c544a784 to your computer and use it in GitHub Desktop.
Save JamesHusband/781e527aa5ffca89cb9bc9c0c544a784 to your computer and use it in GitHub Desktop.
lint error
const handleUpdateFilter = e => {
e.target.value !== 'default'
? onUpdateFilters({
...filters.selected,
[e.target.name]: e.target.value,
})
: null;
};
// Expected an assignment or function call and instead saw an expression
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment