Skip to content

Commit

Permalink
Fjerner amplitude for bughunt
Browse files Browse the repository at this point in the history
  • Loading branch information
toresbe committed Aug 20, 2024
1 parent bb17206 commit 5c7602b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions src/lib/amplitude/Amplitude.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import {logAmplitudeEvent as logAmplitudeMedDekorator} from "@navikt/nav-dekoratoren-moduler";
import {logWarning} from "../log/loggerUtils";
// import {logAmplitudeEvent as logAmplitudeMedDekorator} from "@navikt/nav-dekoratoren-moduler";
// import {logWarning} from "../log/loggerUtils";

export const logAmplitudeEvent = async (eventName: string, eventData?: Record<string, unknown>) => {
logAmplitudeMedDekorator({
origin: "sosialhjelpsoknad",
eventName,
eventData: {...eventData, skjemaId: "sosialhjelpsoknad"},
}).catch((error) => logWarning(`Kunne ikke logge til Amplitude: ${error}`));
export const logAmplitudeEvent = async (_eventName: string, _eventData?: Record<string, unknown>) => {
return;
// logAmplitudeMedDekorator({
// origin: "sosialhjelpsoknad",
// eventName,
// eventData: {...eventData, skjemaId: "sosialhjelpsoknad"},
// }).catch((error) => logWarning(`Kunne ikke logge til Amplitude: ${error}`));
};
2 changes: 1 addition & 1 deletion src/lib/components/SkjemaSteg/useSkjemaNavigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const useSkjemaNavigation = (steg: number) => {
return;
} else {
dispatch({type: "clearAllValideringsfeil"});
logAmplitudeEvent("skjemasteg fullført", {steg});
logAmplitudeEvent("skjemasteg fullført", {steg}).then();
}
}

Expand Down

0 comments on commit 5c7602b

Please sign in to comment.