Skip to content

Commit 8617f55

Browse files
committed
Rett opp ts error
1 parent d4a2b6d commit 8617f55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function lagBrukerNavn(fornavn: string, etternavn: string): string {
3939
return fornavn + ', ' + etternavn;
4040
}
4141

42-
export const vedKlikkUtenfor = (refs: RefObject<HTMLElement>[], klikkTarget: Node | null, fn: () => void) => {
42+
export const vedKlikkUtenfor = (refs: Array<RefObject<Element | null>>, klikkTarget: Node | null, fn: () => void) => {
4343
if (!refs.some(ref => ref.current?.contains(klikkTarget))) {
4444
fn();
4545
}

0 commit comments

Comments
 (0)