{"size": 468, "ext": "js", "max_stars_repo_path": "src/store/Modules/Mistake/index.js", "max_stars_repo_name": "Quiz-Expert/web", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/store/Modules/Mistake/index.js", "max_issues_repo_name": "Quiz-Expert/web", "max_issues_repo_issues_event_min_datetime": "2021-03-18T13:30:31.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-28T19:15:56.000Z", "max_forks_repo_path": "src/store/Modules/Mistake/index.js", "max_forks_repo_name": "Quiz-Expert/web", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 109, "max_forks_count": null, "avg_line_length": 26.0, "max_line_length": 75, "alphanum_fraction": 0.6858974359}
import actions from "./actions";
import mutations from "./mutations";

const mistake = {
  state: {
    mistakes: JSON.parse(localStorage.getItem('MISTAKES')) || [],
    mistakeById: JSON.parse(localStorage.getItem('MISTAKE_BY_ID')) || null,
  },
  getters: {
    mistakes: state => state.mistakes,
    mistakeById: state => state.mistakeById,
    isMistakeExist: state => !!state.mistakeById
  },
  mutations: mutations,
  actions: actions,
}

export default mistake;