import { assign } from 'lodash'

export const saveToSession = (payload) => {
  const filters = assign(getFromSession(), payload)
  window.sessionStorage.setItem('myInvestmentProjects', JSON.stringify(filters))
}

export const getFromSession = () => {
  try {
    return (
      JSON.parse(window.sessionStorage.getItem('myInvestmentProjects')) || {}
    )
  } catch {
    return {}
  }
}

@@ -78,23 +78,21 @@
   const 
-filters
+state
  = assig
@@ -195,15 +195,13 @@
 ify(
-filters
+state
 ))%0A%7D

Rename state variable