Skip to content

Commit

Permalink
rename error to offerError
Browse files Browse the repository at this point in the history
  • Loading branch information
rosvik committed Sep 12, 2024
1 parent 86f7702 commit 843df02
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const Root_PurchaseConfirmationScreen: React.FC<Props> = ({
const {
offerSearchTime,
isSearchingOffer,
error,
error: offerError,
validDurationSeconds,
totalPrice,
refreshOffer,
Expand Down Expand Up @@ -253,7 +253,7 @@ export const Root_PurchaseConfirmationScreen: React.FC<Props> = ({
globalMessageContext={GlobalMessageContextEnum.appTicketing}
/>
<ScrollView style={styles.infoSection}>
{error && (
{offerError && (
<MessageInfoBox
type="error"
title={t(PurchaseConfirmationTexts.errorMessageBox.title)}
Expand Down Expand Up @@ -326,7 +326,7 @@ export const Root_PurchaseConfirmationScreen: React.FC<Props> = ({
<Button
text={getPaymentMethodTexts(paymentMethod)}
interactiveColor="interactive_0"
disabled={!!error}
disabled={!!offerError}
rightIcon={{
svg: getPaymentTypeSvg(paymentMethod.paymentType),
}}
Expand All @@ -345,7 +345,7 @@ export const Root_PurchaseConfirmationScreen: React.FC<Props> = ({
/>
<PressableOpacity
style={styles.buttonTopSpacing}
disabled={!!error}
disabled={!!offerError}
onPress={() => {
analytics.logEvent(
'Ticketing',
Expand All @@ -372,7 +372,7 @@ export const Root_PurchaseConfirmationScreen: React.FC<Props> = ({
<Button
interactiveColor="interactive_0"
text={t(PurchaseConfirmationTexts.choosePaymentMethod.text)}
disabled={!!error}
disabled={!!offerError}
accessibilityHint={t(
PurchaseConfirmationTexts.choosePaymentMethod.a11yHint,
)}
Expand Down

0 comments on commit 843df02

Please sign in to comment.