Skip to content

Commit

Permalink
Legger til mellomrom i buckets i amplitude
Browse files Browse the repository at this point in the history
  • Loading branch information
ebelegu committed Dec 19, 2024
1 parent e8177ea commit 0537db6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/utils/funksjonerForAmplitudeLogging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ export const finnBucketForAntall = (
if (!harRegistrertAntallAnsatte) return '0';

//Hvis harRegistrertAntallAnsatte er true og antall er undefined er det 1-4 ansatte
if (antall === undefined) return '1-4';
if (antall === undefined) return '1 - 4';

switch (true) {
case antall < 20:
return '5-19';
return '5 - 19';
case antall < 50:
return '20-49';
return '20 - 49';
case antall < 100:
return '50-99';
return '50 - 99';
case antall < 500:
return '100-499';
return '100 - 499';
case antall > 500:
return '500>';
return '500 >';
default:
return undefined;
}
Expand Down

0 comments on commit 0537db6

Please sign in to comment.