Skip to content

Commit 13866e3

Browse files
authored
Merge pull request Expensify#63898 from mkzie2/mkzie2-issue/63134
fix: per diem amount is rounded by decimals
2 parents 729b048 + 0f3e0ea commit 13866e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/workspace/perDiem/WorkspacePerDiemDetailsPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)