traxxx/assets/js/auth/getters.js

9 lines
173 B
JavaScript

function favoritesStash(state) {
return state.user.stashes.find(stash => stash.slug === 'favorites');
}
module.exports = {
favoritesStash,
favorites: favoritesStash,
};