Skip to content

Commit a9d5c54

Browse files
committed
fix lint
1 parent fe5d1a3 commit a9d5c54

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/hooks/useSubscriptionPlan.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import {isEmptyObject} from '@src/types/utils/EmptyObject';
66
import useOnyx from './useOnyx';
77

88
function useSubscriptionPlan() {
9-
const [policies] = useOnyx(ONYXKEYS.COLLECTION.POLICY);
10-
const [userMetadata] = useOnyx(ONYXKEYS.USER_METADATA);
9+
const [policies] = useOnyx(ONYXKEYS.COLLECTION.POLICY, {canBeMissing: false});
10+
const [userMetadata] = useOnyx(ONYXKEYS.USER_METADATA, {canBeMissing: true});
1111

1212
// Filter workspaces in which user is the owner and the type is either corporate (control) or team (collect)
1313
const ownerPolicies = useMemo(() => getOwnedPaidPolicies(policies, userMetadata?.accountID ?? -1), [policies, userMetadata?.accountID]);

0 commit comments

Comments
 (0)