Skip to content

Commit

Permalink
Exception input value generate rule on ehdotus määräaika because keys…
Browse files Browse the repository at this point in the history
… on two different data don't match
  • Loading branch information
henrihaapalasiili committed Jul 9, 2024
1 parent 7b68973 commit 1c39d5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/input/DeadlineInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ const DeadLineInput = ({
if(currentDeadline?.deadline?.attribute && attributeData[currentDeadline.deadline.attribute]){
currentDeadlineDate = attributeData[currentDeadline.deadline.attribute]
}
else if(currentDeadline?.deadline?.attribute && currentDeadline?.deadline?.attribute === 'ehdotus_nahtaville_aineiston_maaraaika' && attributeData['ehdotus_kylk_aineiston_maaraaika']){
currentDeadlineDate = attributeData['ehdotus_kylk_aineiston_maaraaika']
else if(input.name === 'ehdotus_nahtaville_aineiston_maaraaika' && attributeData['ehdotus_kylk_aineiston_maaraaika']){
inputValue = attributeData['ehdotus_kylk_aineiston_maaraaika']
}
else if (currentDeadline?.date) {
currentDeadlineDate = currentDeadline.date
Expand Down

0 comments on commit 1c39d5a

Please sign in to comment.