diff --git a/src/app/settings/payment.component.ts b/src/app/settings/payment.component.ts index a38d8add5d..b5f917d8cf 100644 --- a/src/app/settings/payment.component.ts +++ b/src/app/settings/payment.component.ts @@ -103,6 +103,10 @@ export class PaymentComponent implements OnInit { }); if (!this.hidePaypal) { window.document.head.removeChild(this.btScript); + const btStylesheet = window.document.head.querySelector('#braintree-dropin-stylesheet'); + if (btStylesheet != null) { + window.document.head.removeChild(btStylesheet); + } } }