@@ -179,11 +179,11 @@ function FloatingActionButtonAndPopover({onHideCreateMenu, onShowCreateMenu, isT
179179 const { translate} = useLocalize ( ) ;
180180 const [ isLoading = false ] = useOnyx ( ONYXKEYS . IS_LOADING_APP , { canBeMissing : true } ) ;
181181 const [ personalDetails ] = useOnyx ( ONYXKEYS . PERSONAL_DETAILS_LIST , { canBeMissing : true } ) ;
182- const [ session ] = useOnyx ( ONYXKEYS . SESSION , { canBeMissing : true } ) ;
182+ const [ session ] = useOnyx ( ONYXKEYS . SESSION , { canBeMissing : false } ) ;
183183 const [ quickAction ] = useOnyx ( ONYXKEYS . NVP_QUICK_ACTION_GLOBAL_CREATE , { canBeMissing : true } ) ;
184184 const [ quickActionReport ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT } ${ quickAction ?. chatReportID } ` , { canBeMissing : true } ) ;
185185 const [ reportNameValuePairs ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT_NAME_VALUE_PAIRS } ${ quickActionReport ?. reportID } ` , { canBeMissing : true } ) ;
186- const [ activePolicyID ] = useOnyx ( ONYXKEYS . NVP_ACTIVE_POLICY_ID , { canBeMissing : true } ) ;
186+ const [ activePolicyID ] = useOnyx ( ONYXKEYS . NVP_ACTIVE_POLICY_ID , { canBeMissing : false } ) ;
187187 const [ allReports ] = useOnyx ( ONYXKEYS . COLLECTION . REPORT , { canBeMissing : true } ) ;
188188 const [ activePolicy ] = useOnyx ( `${ ONYXKEYS . COLLECTION . POLICY } ${ activePolicyID } ` , { canBeMissing : true } ) ;
189189 const policyChatForActivePolicy = useMemo ( ( ) => {
@@ -194,7 +194,7 @@ function FloatingActionButtonAndPopover({onHideCreateMenu, onShowCreateMenu, isT
194194 return policyChatsForActivePolicy . length > 0 ? policyChatsForActivePolicy . at ( 0 ) : ( { } as OnyxTypes . Report ) ;
195195 } , [ activePolicy , activePolicyID , session ?. accountID , allReports ] ) ;
196196 const [ quickActionPolicy ] = useOnyx ( `${ ONYXKEYS . COLLECTION . POLICY } ${ quickActionReport ?. policyID } ` , { canBeMissing : true } ) ;
197- const [ allPolicies ] = useOnyx ( ONYXKEYS . COLLECTION . POLICY , { selector : ( c ) => mapOnyxCollectionItems ( c , policySelector ) , canBeMissing : true } ) ;
197+ const [ allPolicies ] = useOnyx ( ONYXKEYS . COLLECTION . POLICY , { selector : ( c ) => mapOnyxCollectionItems ( c , policySelector ) , canBeMissing : false } ) ;
198198 const currentUserPersonalDetails = useCurrentUserPersonalDetails ( ) ;
199199 const { canUseLeftHandBar} = usePermissions ( ) ;
200200
@@ -207,9 +207,9 @@ function FloatingActionButtonAndPopover({onHideCreateMenu, onShowCreateMenu, isT
207207 const prevIsFocused = usePrevious ( isFocused ) ;
208208 const { isOffline} = useNetwork ( ) ;
209209 const { isBlockedFromSpotnanaTravel} = usePermissions ( ) ;
210- const [ primaryLogin ] = useOnyx ( ONYXKEYS . ACCOUNT , { selector : ( account ) => account ?. primaryLogin , canBeMissing : true } ) ;
210+ const [ primaryLogin ] = useOnyx ( ONYXKEYS . ACCOUNT , { selector : ( account ) => account ?. primaryLogin , canBeMissing : false } ) ;
211211 const primaryContactMethod = primaryLogin ?? session ?. email ?? '' ;
212- const [ travelSettings ] = useOnyx ( ONYXKEYS . NVP_TRAVEL_SETTINGS , { canBeMissing : true } ) ;
212+ const [ travelSettings ] = useOnyx ( ONYXKEYS . NVP_TRAVEL_SETTINGS , { canBeMissing : false } ) ;
213213
214214 const { canUseSpotnanaTravel, canUseTableReportView} = usePermissions ( ) ;
215215 const canSendInvoice = useMemo ( ( ) => canSendInvoicePolicyUtils ( allPolicies as OnyxCollection < OnyxTypes . Policy > , session ?. email ) , [ allPolicies , session ?. email ] ) ;
0 commit comments