Skip to content

Commit 29e086b

Browse files
author
Chris Kosuke Tseng
authored
Merge pull request #4225 from Expensify/jules-getLocalCurrencyOnIOUOpen
Fetch local currency on each IOU request, to ensure local currency is always up to date
2 parents 59c393d + a3ad8ef commit 29e086b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/pages/iou/IOUModal.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import FullScreenLoadingIndicator from '../../components/FullscreenLoadingIndica
2020
import ScreenWrapper from '../../components/ScreenWrapper';
2121
import CONST from '../../CONST';
2222
import KeyboardAvoidingView from '../../components/KeyboardAvoidingView';
23+
import * as PersonalDetails from '../../libs/actions/PersonalDetails';
2324

2425
/**
2526
* IOU modal for requesting money and splitting bills.
@@ -129,6 +130,7 @@ class IOUModal extends Component {
129130
}
130131

131132
componentDidMount() {
133+
PersonalDetails.fetchLocalCurrency();
132134
setIOUSelectedCurrency(this.props.myPersonalDetails.localCurrencyCode);
133135
}
134136

@@ -287,9 +289,9 @@ class IOUModal extends Component {
287289
</View>
288290
<View style={[styles.pRelative, styles.flex1]}>
289291
<FullScreenLoadingIndicator
290-
visible={!didScreenTransitionEnd || this.props.iou.isRetrievingCurrency}
292+
visible={!didScreenTransitionEnd}
291293
/>
292-
{didScreenTransitionEnd && !this.props.iou.isRetrievingCurrency && (
294+
{didScreenTransitionEnd && (
293295
<>
294296
{currentStep === Steps.IOUAmount && (
295297
<IOUAmountPage

0 commit comments

Comments
 (0)