Skip to content

Commit

Permalink
bytte ut isFinite med math
Browse files Browse the repository at this point in the history
  • Loading branch information
Wiklem committed Jan 7, 2025
1 parent 690aa39 commit a3281d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/kandidat-søk-api/kandidatsøk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ interface IuseKandidatsøk {

export const useKandidatsøk = ({ søkeprops, portefølje }: IuseKandidatsøk) => {
const queryParams = new URLSearchParams({
side: Number.isFinite(søkeprops.side) ? String(søkeprops.side) : '1',
side: Math.max(1, Math.floor(søkeprops.side)).toString(),
sortering: søkeprops.sortering,
});

Expand Down

0 comments on commit a3281d9

Please sign in to comment.