Commit f62939e7 authored by Filipa Lacerda's avatar Filipa Lacerda

[ci skip] Fallback to empty object if no user is signed in

parent 3158fa7e
...@@ -154,4 +154,3 @@ ...@@ -154,4 +154,3 @@
</form> </form>
</div> </div>
</template> </template>
...@@ -9,7 +9,7 @@ export const getNotesDataByProp = state => prop => state.notesData[prop]; ...@@ -9,7 +9,7 @@ export const getNotesDataByProp = state => prop => state.notesData[prop];
export const getIssueData = state => state.issueData; export const getIssueData = state => state.issueData;
export const getIssueDataByProp = state => prop => state.issueData[prop]; export const getIssueDataByProp = state => prop => state.issueData[prop];
export const getUserData = state => state.userData; export const getUserData = state => state.userData || {};
export const getUserDataByProp = state => prop => state.userData && state.userData[prop]; export const getUserDataByProp = state => prop => state.userData && state.userData[prop];
export const notesById = state => state.notes.reduce((acc, note) => { export const notesById = state => state.notes.reduce((acc, note) => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment