Skip to content

Commit 25df8a0

Browse files
committed
fix(mobile): checkout cost
1 parent 41d69e1 commit 25df8a0

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

mobile/lang/en.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export const en = {
147147
BOOKING_OPTIONS: 'Your booking options',
148148
BOOKING_DETAILS: 'Your booking details',
149149
DAYS: 'Days',
150-
COST: 'COST',
150+
COST: 'Cost',
151151
DRIVER_DETAILS: 'Driver details',
152152
EMAIL_INFO: 'You will receive a confirmation email at this address.',
153153
PHONE_INFO: 'If we need to contact you urgently.',

mobile/screens/CheckoutScreen.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,19 @@ const CheckoutScreen = ({ navigation, route }: NativeStackScreenProps<StackParam
947947
: payInFull ? bookcarsHelper.formatPrice(price + depositPrice, currencySymbol, language)
948948
: bookcarsHelper.formatPrice(price, currencySymbol, language)
949949
}</Text>
950+
951+
{(payLater || (!payDeposit && !payInFull)) && depositPrice > 0 && (
952+
<>
953+
<Text style={styles.detailTitle}>{i18n.t('DEPOSIT')}</Text>
954+
<Text style={styles.detailTextBold}>{
955+
bookcarsHelper.formatPrice(depositPrice, currencySymbol, language)
956+
}</Text>
957+
</>
958+
)}
959+
960+
{payDeposit && (<>
961+
<Text style={styles.detailTitle}>{i18n.t('COST')}</Text>
962+
<Text style={styles.detailTextBold}>{bookcarsHelper.formatPrice(price, currencySymbol, language)}</Text></>)}
950963
</View>
951964

952965
{!authenticated && (

0 commit comments

Comments
 (0)