Skip to content

Commit

Permalink
feat/services-logic used constants (#135)
Browse files Browse the repository at this point in the history
* feat(context): adding interface

* feat(context): adding interface

* feat(context): adding form

* feat(context): adding form

* feat(context): adding form

* feat(context): adding style

* feat(context): adding const
  • Loading branch information
JyTosTT authored Oct 10, 2023
1 parent 79cb496 commit fdb0f52
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,21 @@ const LocalisationFormOrganism = ({ entityForm: serviceForm, onChange, onForm }:
}

const emptyFieldsRadioSelection = (name: string): void => {
if (name === 'local') {
if (name === LOCAL_RADIO_NAME) {
toggleSelectedLocal()
} else if (name === 'remote') {
} else if (name === REMOTE_RADIO_NAME) {
toggleSelectedRemote()
} else {
throw new Error(Errors.NOT_IMPLEMENTED)
}
}

const onEntityRadioChange = (name: string): void => {
if (name === 'local') {
if (name === LOCAL_RADIO_NAME) {
keys(REMOTE_FIELDS).forEach((key) => {
onKeyFormReset(key as keyof TEntity)
})
} else if (name === 'remote') {
} else if (name === REMOTE_RADIO_NAME) {
keys(LOCAL_FIELDS).forEach((key) => {
onKeyFormReset(key as keyof TEntity)
})
Expand Down

0 comments on commit fdb0f52

Please sign in to comment.