File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ private static function render_seller_status( $mode ) {
7373 }
7474
7575 // TODO: Only render when we visit the PayPal tab.
76- // TODO: If all 3 validate, we should be able to save this to an option and stop making requests.
7776 $ status = self ::get_seller_status ( $ mode );
7877
7978 /*
@@ -106,9 +105,11 @@ private static function render_seller_status( $mode ) {
106105 return ;
107106 }
108107
109- update_option ( self :: get_paypal_seller_status_option_name ( $ mode ), $ status, false ) ;
108+ $ email = $ status-> primary_email ?? '' ;
110109
111- $ email = ! empty ( $ status ->primary_email ) ? $ status ->primary_email : '' ;
110+ if ( $ email ) {
111+ update_option ( self ::get_paypal_seller_status_option_name ( $ mode ), $ status , false );
112+ }
112113
113114 echo '<div class="frm_message"> ' ;
114115 esc_html_e ( 'Your seller status is valid ' , 'formidable ' );
You can’t perform that action at this time.
0 commit comments