File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
packages/clerk-js/src/ui/components Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ---
Original file line number Diff line number Diff line change @@ -90,8 +90,9 @@ export const PaymentAttemptPage = () => {
90
90
variant = 'danger'
91
91
colorScheme = 'danger'
92
92
>
93
- { translateError ( error . errors [ 0 ] ) ||
94
- t ( localizationKeys ( `${ localizationRoot } .billingPage.paymentHistorySection.notFound` ) ) }
93
+ { error
94
+ ? translateError ( error . errors [ 0 ] )
95
+ : t ( localizationKeys ( `${ localizationRoot } .billingPage.paymentHistorySection.notFound` ) ) }
95
96
</ Alert >
96
97
</ Box >
97
98
) : (
Original file line number Diff line number Diff line change @@ -85,8 +85,9 @@ export const StatementPage = () => {
85
85
variant = 'danger'
86
86
colorScheme = 'danger'
87
87
>
88
- { translateError ( error . errors [ 0 ] ) ||
89
- t ( localizationKeys ( `${ localizationRoot } .billingPage.statementsSection.notFound` ) ) }
88
+ { error
89
+ ? translateError ( error . errors [ 0 ] )
90
+ : t ( localizationKeys ( `${ localizationRoot } .billingPage.statementsSection.notFound` ) ) }
90
91
</ Alert >
91
92
</ Box >
92
93
) : (
You can’t perform that action at this time.
0 commit comments