Skip to content

Commit eda6e06

Browse files
committed
fix(mobile): checkout options initialization
1 parent 25df8a0 commit eda6e06

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mobile/screens/CheckoutScreen.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ const CheckoutScreen = ({ navigation, route }: NativeStackScreenProps<StackParam
230230
const _car = await CarService.getCar(route.params.car)
231231
setCar(_car)
232232

233+
setPayInFull(_car.deposit === 0)
234+
233235
const _pickupLocation = await LocationService.getLocation(route.params.pickupLocation)
234236
setPickupLocation(_pickupLocation)
235237

@@ -1181,7 +1183,7 @@ const CheckoutScreen = ({ navigation, route }: NativeStackScreenProps<StackParam
11811183
<>
11821184
<RadioButton
11831185
label={i18n.t('PAY_IN_FULL')}
1184-
checked={payInFull || car.deposit === 0}
1186+
checked={payInFull}
11851187
onValueChange={(checked: boolean) => {
11861188
setPayInFull(checked)
11871189
setPayLater(!checked)

0 commit comments

Comments
 (0)