File tree Expand file tree Collapse file tree
src/pages/workspace/perDiem Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ function WorkspacePerDiemDetailsPage({route}: WorkspacePerDiemDetailsPageProps)
3232 const rateID = route . params . rateID ;
3333 const subRateID = route . params . subRateID ;
3434 const [ deletePerDiemConfirmModalVisible , setDeletePerDiemConfirmModalVisible ] = useState ( false ) ;
35- const [ policy ] = useOnyx ( `${ ONYXKEYS . COLLECTION . POLICY } ${ policyID } ` ) ;
35+ const [ policy ] = useOnyx ( `${ ONYXKEYS . COLLECTION . POLICY } ${ policyID } ` , { canBeMissing : false } ) ;
3636
3737 const styles = useThemeStyles ( ) ;
3838 const { translate} = useLocalize ( ) ;
@@ -44,7 +44,7 @@ function WorkspacePerDiemDetailsPage({route}: WorkspacePerDiemDetailsPageProps)
4444
4545 const selectedSubRate = fetchedSubRate ?? previousFetchedSubRate ;
4646
47- const amountValue = selectedSubRate ?. rate ? convertToDisplayStringWithoutCurrency ( Number ( selectedSubRate . rate ) , selectedRate ?. currency ) : undefined ;
47+ const amountValue = selectedSubRate ?. rate ? convertToDisplayStringWithoutCurrency ( Number ( selectedSubRate . rate ) ) : undefined ;
4848 const currencyValue = selectedRate ?. currency ? `${ selectedRate . currency } - ${ getCurrencySymbol ( selectedRate . currency ) } ` : undefined ;
4949
5050 const FullPageBlockingView = isEmptyObject ( selectedSubRate ) ? FullPageOfflineBlockingView : View ;
You can’t perform that action at this time.
0 commit comments