Skip to content

Commit

Permalink
Merge pull request Expensify#29682 from Expensify/vit-fixUseLocalize
Browse files Browse the repository at this point in the history
[CP Staging] Redefine useLocalize in SplitDetailsPage
  • Loading branch information
Beamanator authored Oct 16, 2023
2 parents 44bcf1c + 3bbc45e commit 77b384b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/iou/SplitBillDetailsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import reportActionPropTypes from '../home/report/reportActionPropTypes';
import reportPropTypes from '../reportPropTypes';
import transactionPropTypes from '../../components/transactionPropTypes';
import withReportAndReportActionOrNotFound from '../home/report/withReportAndReportActionOrNotFound';
import useLocalize from '../../hooks/useLocalize';
import * as TransactionUtils from '../../libs/TransactionUtils';
import * as ReportUtils from '../../libs/ReportUtils';
import * as IOU from '../../libs/actions/IOU';
Expand All @@ -23,6 +22,7 @@ import MoneyRequestConfirmationList from '../../components/MoneyRequestConfirmat
import FullPageNotFoundView from '../../components/BlockingViews/FullPageNotFoundView';
import HeaderWithBackButton from '../../components/HeaderWithBackButton';
import MoneyRequestHeaderStatusBar from '../../components/MoneyRequestHeaderStatusBar';
import useLocalize from '../../hooks/useLocalize';

const propTypes = {
/* Onyx Props */
Expand Down Expand Up @@ -70,8 +70,8 @@ const defaultProps = {
};

function SplitBillDetailsPage(props) {
const {translate} = useLocalize();
const {reportID} = props.report;
const {translate} = useLocalize();
const reportAction = props.reportActions[`${props.route.params.reportActionID.toString()}`];
const participantAccountIDs = reportAction.originalMessage.participantAccountIDs;

Expand Down

0 comments on commit 77b384b

Please sign in to comment.