File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
packages/app/src/app/pages/common/Modals/PreferencesModal/PaymentInfo Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ export const PaymentInfo: FunctionComponent = () => {
3131 > [ 'subscribe' ] = ( { token } ) => paymentDetailsUpdated ( token ) ;
3232
3333 const Body = ( ) => {
34+ const { brand, last4, name } = paymentDetails || { } ;
3435 if ( isLoadingPaymentDetails ) {
3536 return < div > Loading payment details...</ div > ;
3637 }
@@ -42,15 +43,12 @@ export const PaymentInfo: FunctionComponent = () => {
4243 return (
4344 < div >
4445 < Subheading > Current card</ Subheading >
45-
46- < Card brand = { paymentDetails . brand } last4 = { paymentDetails . last4 } name = { paymentDetails . name } />
47-
46+ < Card brand = { brand } last4 = { last4 } name = { name } />
4847 < Subheading style = { { marginTop : '2rem' } } > Update card info</ Subheading >
49-
5048 < SubscribeForm
5149 buttonName = "Update"
5250 loadingText = "Updating Card Info..."
53- name = { paymentDetails . name }
51+ name = { name }
5452 subscribe = { updatePaymentDetails }
5553 />
5654 </ div >
@@ -60,7 +58,6 @@ export const PaymentInfo: FunctionComponent = () => {
6058 return (
6159 < Container >
6260 < Title > Payment Info</ Title >
63-
6461 < Body />
6562 </ Container >
6663 ) ;
You can’t perform that action at this time.
0 commit comments