mirror of
https://github.com/mempool/mempool.git
synced 2024-11-20 02:11:49 +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(
|
this.conversionsSubscription = this.stateService.conversions$.subscribe(
|
||||||
async (conversions) => {
|
async (conversions) => {
|
||||||
|
if (this.cashAppPay) {
|
||||||
|
this.cashAppPay.destroy();
|
||||||
|
}
|
||||||
|
|
||||||
const maxCostUsd = this.maxCost / 100_000_000 * conversions.USD;
|
const maxCostUsd = this.maxCost / 100_000_000 * conversions.USD;
|
||||||
const paymentRequest = this.payments.paymentRequest({
|
const paymentRequest = this.payments.paymentRequest({
|
||||||
countryCode: 'US',
|
countryCode: 'US',
|
||||||
|
Loading…
Reference in New Issue
Block a user