Skip to content

Commit

Permalink
klarspråk default på i oppdaterreferat (#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
johatr authored Aug 28, 2023
1 parent bec47c3 commit 201a6cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/moduler/aktivitet/visning/referat/OppdaterReferatForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ interface Props {
const OppdaterReferatForm = (props: Props) => {
const { aktivitet, onFerdig } = props;

const [open, setOpen] = useState(false);
const [open, setOpen] = useState(true);
const visSpraksjekk = useSelector(selectFeature(VIS_SPRAKSJEKK));

const startTekst = useReferatStartTekst();
Expand Down Expand Up @@ -74,7 +74,7 @@ const OppdaterReferatForm = (props: Props) => {
return dispatch(oppdaterReferat(aktivitetMedOppdatertReferat)).then((action) => {
if (log) {
const analysis = checkText(referatData.referat);
logReferatFullfort(analysis, aktivitet.erReferatPublisert, open, visSpraksjekk ? 'B' : 'A');
logReferatFullfort(analysis, aktivitet.erReferatPublisert, open, visSpraksjekk ? 'C' : 'A');
}
if (isFulfilled(action)) {
onFerdig();
Expand All @@ -88,7 +88,7 @@ const OppdaterReferatForm = (props: Props) => {
if (action.payload) {
dispatch(publiserReferat(action.payload)).then(() => {
const analysis = checkText(values.referat);
logReferatFullfort(analysis, true, open, visSpraksjekk ? 'B' : 'A');
logReferatFullfort(analysis, true, open, visSpraksjekk ? 'C' : 'A');
});
}
});
Expand Down

0 comments on commit 201a6cb

Please sign in to comment.