Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Incident - reportedBy should store the currently logged in user id #2539

@blestab

Description

@blestab

🐛 Bug Report

Report incident is currently hardcoded to set reportedBy to some user instead of the currently logged in user's id. This needs to be corrected to user the current user id from the redux store.

To Reproduce

Expected behavior

  • The incident.reportedBy should be the currently logged in user.id at the time the incident is reported
  • The list of incidents should display the user.fullName based on the incident.reportedBy

Notes

  • See src/shared/components/navbar/Navbar.tsx on how to access the user from the store

Your Environment

  • node version: 6,8,10
  • fastify version: >=1.0.0
  • os: Mac, Windows, Linux
  • any other relevant information

Metadata

Metadata

Assignees

Labels

good first issueindicates an issue is good for a first time contributorin progressindicates that issue/pull request is currently being worked onincidents🐛bugissue/pull request that documents/fixes a bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions