mirror of
https://github.com/mempool/mempool.git
synced 2024-11-19 18:03:00 +01:00
[accelerator] reset cashapp upon price update
This commit is contained in:
parent
d7a4a95c05
commit
88de5412f8
@ -318,6 +318,10 @@ export class AcceleratePreviewComponent implements OnInit, OnDestroy, OnChanges
|
||||
|
||||
this.conversionsSubscription = this.stateService.conversions$.subscribe(
|
||||
async (conversions) => {
|
||||
if (this.cashAppPay) {
|
||||
this.cashAppPay.destroy();
|
||||
}
|
||||
|
||||
const maxCostUsd = this.maxCost / 100_000_000 * conversions.USD;
|
||||
const paymentRequest = this.payments.paymentRequest({
|
||||
countryCode: 'US',
|
||||
|
Loading…
Reference in New Issue
Block a user