developmentseed / developmentseed/scoreboard

Menu bug if not admin user [local development]

Open
#641 3 comments 0 reactions 0 assignees View on GitHub
bug more tests required
Dominant language
JavaScript
Stars
27
Forks
8
PR merge metrics
No merged PRs in 30d

Description

In addition to #637, I'm experiencing a bug in local development. When already signed in from previous local development sessions, clicking the "User" menu throws the following error:

```
TypeError: Cannot read property 'roles' of undefined
Layout.render
./pages/_app.js:195
192 |


    193 |
  • Dashboard

  • 194 |
  • Public Profile

  • > 195 |
  • Edit Profile

  • 196 | {
    197 | account.roles && isAdmin(account.roles) && (
    198 |
  • Admin

  • View compiled
    ```

    Solutions include clearing cache and application data in inspector then re-logging in, or stopping development and re-setting self as admin user.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.