developmentseed / developmentseed/scoreboard
Menu bug if not admin user [local development]
Open
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 |
- Dashboard
- Public Profile
- Edit Profile
- Admin
193 |
194 |
> 195 |
196 | {
197 | account.roles && isAdmin(account.roles) && (
198 |
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
Assessment
This issue has not been assessed yet.