File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -417,6 +417,7 @@ class IOUModal extends Component {
417
417
hasMultipleParticipants = { this . props . hasMultipleParticipants }
418
418
selectedAmount = { this . state . amount }
419
419
navigation = { this . props . navigation }
420
+ iouType = { this . props . iouType }
420
421
/>
421
422
</ AnimatedStep >
422
423
) }
Original file line number Diff line number Diff line change @@ -217,9 +217,15 @@ class IOUAmountPage extends React.Component {
217
217
styles . justifyContentCenter ,
218
218
] }
219
219
>
220
- < TouchableOpacity onPress = { ( ) => Navigation . navigate ( this . props . hasMultipleParticipants
221
- ? ROUTES . getIouBillCurrencyRoute ( this . props . reportID )
222
- : ROUTES . getIouRequestCurrencyRoute ( this . props . reportID ) ) }
220
+ < TouchableOpacity onPress = { ( ) => {
221
+ if ( this . props . hasMultipleParticipants ) {
222
+ return Navigation . navigate ( ROUTES . getIouBillCurrencyRoute ( this . props . reportID ) ) ;
223
+ }
224
+ if ( this . props . iouType === CONST . IOU . IOU_TYPE . SEND ) {
225
+ return Navigation . navigate ( ROUTES . getIouSendCurrencyRoute ( this . props . reportID ) ) ;
226
+ }
227
+ return Navigation . navigate ( ROUTES . getIouRequestCurrencyRoute ( this . props . reportID ) ) ;
228
+ } }
223
229
>
224
230
< Text style = { styles . iouAmountText } >
225
231
{ lodashGet ( this . props . currencyList , [ this . props . iou . selectedCurrencyCode , 'symbol' ] ) }
@@ -236,6 +242,7 @@ class IOUAmountPage extends React.Component {
236
242
value = { formattedAmount }
237
243
placeholder = { this . props . numberFormat ( 0 ) }
238
244
keyboardType = { CONST . KEYBOARD_TYPE . NUMBER_PAD }
245
+ blurOnSubmit = { false }
239
246
/>
240
247
</ View >
241
248
< View style = { [ styles . w100 , styles . justifyContentEnd ] } >
You can’t perform that action at this time.
0 commit comments