Skip to content

Commit

Permalink
Fix blank import per diem page
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham1206agra committed Nov 25, 2024
1 parent a20132e commit 95cffc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/workspace/perDiem/ImportedPerDiemPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import ROUTES from '@src/ROUTES';
import type SCREENS from '@src/SCREENS';
import type {Errors} from '@src/types/onyx/OnyxCommon';
import type {Rate} from '@src/types/onyx/Policy';
import NotFoundPage from '@pages/ErrorPage/NotFoundPage';

function generatePerDiemUnits(perDiemDestination: string[], perDiemSubRate: string[], perDiemCurrency: string[], perDiemAmount: string[]) {
const perDiemUnits: Record<string, Rate> = {};
Expand Down Expand Up @@ -128,7 +129,7 @@ function ImportedPerDiemPage({route}: ImportedPerDiemPageProps) {

const spreadsheetColumns = spreadsheet?.data;
if (!spreadsheetColumns) {
return;
return <NotFoundPage onBackButtonPress={() => Navigation.goBack(ROUTES.WORKSPACE_PER_DIEM_IMPORT.getRoute(policyID))} />;
}

const closeImportPageAndModal = () => {
Expand Down

0 comments on commit 95cffc9

Please sign in to comment.