We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df50fa0 commit 00a16afCopy full SHA for 00a16af
packages/internarbeidsflate-decorator-v3/src/Decorator.tsx
@@ -15,11 +15,11 @@ const Decorator: React.FC<PropsWithChildren<DecoratorProps>> = (props) => {
15
...props,
16
ignoreExternalFnr: props.fnrSyncMode === 'writeOnly',
17
fetchActiveUserOnMount:
18
- props.fnrSyncMode === 'writeOnly' || props.fetchActiveUserOnMount,
+ props.fnrSyncMode !== 'writeOnly' && props.fetchActiveUserOnMount,
19
20
- ignoreExternalEnhet: props.fnrSyncMode === 'writeOnly',
+ ignoreExternalEnhet: props.enhetSyncMode === 'writeOnly',
21
fetchActiveEnhetOnMount:
22
- props.enhetSyncMode === 'writeOnly' || props.fetchActiveEnhetOnMount,
+ props.enhetSyncMode !== 'writeOnly' && props.fetchActiveEnhetOnMount,
23
});
24
25
const ref = useOnOutsideClick<HTMLElement>(() =>
0 commit comments