Skip to content

Commit

Permalink
Endre svar-enhet lagerer svaret (#495)
Browse files Browse the repository at this point in the history
* change unit saves answer

* change unit saves answer
  • Loading branch information
starheim98 authored Nov 13, 2024
1 parent f69634c commit e9d2060
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/beCompliant/src/components/answers/TimeAnswer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ export function TimeAnswer({
const handleTimeAnswerUnit = (e: React.ChangeEvent<HTMLSelectElement>) => {
const timeUnit = e.target.value;
setAnswerUnit(timeUnit);
if (value) {
submitAnswer(value, timeUnit);
}
};

return (
Expand Down

0 comments on commit e9d2060

Please sign in to comment.