Skip to content

Commit

Permalink
Update useReportIncident.tsx
Browse files Browse the repository at this point in the history
Updated useReportIncident.tsx
  • Loading branch information
bottercode committed Aug 31, 2021
1 parent bce0c99 commit d327ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/incidents/hooks/useReportIncident.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function reportIncident(incident: Incident): Promise<Incident> {
...incident,
code: getIncidentCode(),
status: 'reported',
reportedBy: 'some user',
reportedBy: incident.reportedBy,
reportedOn: new Date(Date.now()).toISOString(),
}
return IncidentRepository.save(updatedIncident)
Expand Down

0 comments on commit d327ac1

Please sign in to comment.