Revert vault enabled check in render wrapper

This commit is contained in:
dinamiko 2022-01-05 14:31:12 +01:00
parent 96d154a856
commit a8ccd02e77

View file

@ -177,6 +177,10 @@ class SmartButton implements SmartButtonInterface {
*/
public function render_wrapper(): bool {
if ( ! $this->can_save_vault_token() && $this->has_subscriptions() ) {
return false;
}
if ( $this->settings->has( 'enabled' ) && $this->settings->get( 'enabled' ) ) {
$this->render_button_wrapper_registrar();
$this->render_message_wrapper_registrar();