Skip to content

Commit

Permalink
fix: remove steps and add fields to others (#14821)
Browse files Browse the repository at this point in the history
* fix: remove steps and add fields to others

* chore: nx format:write update dirty files

* feat: jobtitle if self reporting

* fix: pr comments

* fix: remove unused function

* feat: adjust overview screen for new flow and data

* Update libs/application/templates/accident-notification/src/fields/FormOverview/index.tsx

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update libs/application/templates/accident-notification/src/utils/isSportAccidentAndEmployee.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: andes-it <[email protected]>
Co-authored-by: Ólafur Björn Magnússon <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Jónas G. Sigurðsson <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
6 people committed May 17, 2024
1 parent 1868915 commit b5e8ec8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { AccidentTypeEnum, YesOrNo } from '../types'
import { getValueViaPath } from '@island.is/application/core'

// When a person is hurt in a sports accident and is an employee of the sport, the accident
// is considered a work accident. This function checks if both conditions have been checked
export const isSportAccidentAndEmployee = (formValue: FormValue) => {
// is considered a work accident. This function checks if both conditions are met.
export const isSportAccidentAndEmployee = (formValue: FormValue): boolean => {
const workAccidentType = getValueViaPath(
formValue,
'accidentType.radioButton',
Expand Down

0 comments on commit b5e8ec8

Please sign in to comment.