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

Commit

Permalink
Revert "Tc-258 Formater alle telefonnumre som xxx xx xxx" (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathiamu authored Nov 29, 2022
1 parent 54ddac7 commit cecf85d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ export function formaterTelefonnummer(landkode: StringOrNothing, telefonnummer:

if (utenSpace.length !== 8) {
return telefonnummer;
} else {
} else if (utenSpace.substring(0, 3) === '800') {
return formatertLandkode + formatNumber('### ## ###', utenSpace);
} else {
return formatertLandkode + formatNumber('## ## ## ##', utenSpace);
}
}

0 comments on commit cecf85d

Please sign in to comment.