Fix issues with privacy settings

This commit is contained in:
Jai A
2021-04-10 21:54:16 -07:00
parent 03b2d02742
commit 7d3ad5a639
7 changed files with 40 additions and 23 deletions

View File

@@ -36,7 +36,7 @@ export const actions = {
}
state.commit('set_consent', $cookies.get('modrinth-consent') === true)
const scopes = $cookies.get('modrinth-scopes')
if (scopes == null) return
if (!scopes) return
scopes.split(',').forEach((elem) => {
state.commit('add_scope', elem)
})