Update frontend/src/app/components/transaction/transaction.component.ts

Co-authored-by: mononaut <83316221+mononaut@users.noreply.github.com>
This commit is contained in:
softsimon 2023-12-19 13:17:26 +07:00 committed by GitHub
parent 6014469513
commit 1d74a99d2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -439,7 +439,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
block_time: block.timestamp,
};
this.stateService.markBlock$.next({ blockHeight: block.height });
if (this.accelerationInfo && ['accelerating', 'mined', 'completed'].includes(this.accelerationInfo.status)) {
if (this.tx.acceleration || (this.accelerationInfo && ['accelerating', 'mined', 'completed'].includes(this.accelerationInfo.status))) {
this.audioService.playSound('wind-chimes-harp-ascend');
} else {
this.audioService.playSound('magic');