Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Endret loggmelding til amplitude for reaktivering-knapp
Browse files Browse the repository at this point in the history
  • Loading branch information
robertkittilsen committed Aug 31, 2023
1 parent 6daeeb2 commit eacd856
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/komponenter/reaktivering/reaktivering-aktuelt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const ReaktiveringAktuelt = (props: Props) => {
<SisteMeldekortVidereRegistrertValg meldeplikt={meldeplikt} />
<BodyShort className={spacingStyles.blokkS}>
{featureToggle[FeatureToggles.BRUK_REAKTIVERING_KNAPP] ? (
<ReaktiveringKnapp aktivitet="Trykker på reaktivering" />
<ReaktiveringKnapp aktivitet="Bruker reaktiverer seg selv" />
) : (
<Button variant="primary" onClick={() => handleReaktivering('Går til reaktivering')}>
Registrer deg som arbeidssøker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const ReaktiveringKanskjeAktuelt = (props: ReaktiveringKanskjeAktueltProps) => {
</BodyShort>
<BodyShort className={spacingStyles.mb1}>
{featureToggle[FeatureToggles.BRUK_REAKTIVERING_KNAPP] ? (
<ReaktiveringKnapp aktivitet="Trykker på reaktivering fra reaktivering ikke aktuelt" />
<ReaktiveringKnapp aktivitet="Bruker reaktiverer seg selv fra reaktivering ikke aktuelt" />
) : (
<Button
variant="secondary"
Expand Down
1 change: 1 addition & 0 deletions src/komponenter/reaktivering/reaktivering-knapp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const ReaktiveringsKnapp = ({ aktivitet }: Props) => {
...requestConfig(),
method: 'POST',
});
loggAktivitet({ aktivitet: 'Bruker ble reaktivert', ...amplitudeData });
window.location.reload();
} catch (e) {
setShowError(true);
Expand Down

0 comments on commit eacd856

Please sign in to comment.