Merge pull request #735 from mempool/simon/bisq-tx-redirect-fix

Redirect unconfirmed bisq transactions to main website for tracking.
This commit is contained in:
wiz 2021-08-20 21:25:13 +09:00 committed by GitHub
commit 4b72a14706
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,11 @@ export class BisqTransactionComponent implements OnInit, OnDestroy {
}
if (tx.version) {
this.router.navigate(['/tx/', this.txId], { state: { data: tx, bsqTx: true }});
if (this.stateService.env.BASE_MODULE === 'bisq') {
window.location.replace('https://mempool.space/tx/' + this.txId);
} else {
this.router.navigate(['/tx/', this.txId], { state: { data: tx, bsqTx: true }});
}
return of(null);
}