From 7b01bfa714bf104cb5f749296011881471158027 Mon Sep 17 00:00:00 2001 From: truph01 Date: Wed, 7 Jan 2026 10:05:31 +0700 Subject: [PATCH] fix: Currency is USD after relaunching app --- src/pages/iou/request/IOURequestStartPage.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/pages/iou/request/IOURequestStartPage.tsx b/src/pages/iou/request/IOURequestStartPage.tsx index 03808e99e1cb..847795a18958 100644 --- a/src/pages/iou/request/IOURequestStartPage.tsx +++ b/src/pages/iou/request/IOURequestStartPage.tsx @@ -182,11 +182,18 @@ function IOURequestStartPage({ useFocusEffect( useCallback(() => { // The test transaction can change the reportID of the transaction on the flow so we should prevent the reportID from being reverted again. - if (transaction?.reportID === reportID || isLoadingTransaction || isLoadingSelectedTab || !transactionRequestType || prevTransactionReportID !== transaction?.reportID) { + if ( + transaction?.reportID === reportID || + isLoadingTransaction || + isLoadingSelectedTab || + !transactionRequestType || + prevTransactionReportID !== transaction?.reportID || + !personalPolicy?.id + ) { return; } resetIOUTypeIfChanged(transactionRequestType); - }, [transaction?.reportID, reportID, resetIOUTypeIfChanged, transactionRequestType, isLoadingSelectedTab, prevTransactionReportID, isLoadingTransaction]), + }, [transaction?.reportID, reportID, resetIOUTypeIfChanged, transactionRequestType, isLoadingSelectedTab, prevTransactionReportID, isLoadingTransaction, personalPolicy?.id]), ); const [headerWithBackBtnContainerElement, setHeaderWithBackButtonContainerElement] = useState(null);