Skip to content

Commit

Permalink
4.16.1 (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-ptera authored Apr 30, 2024
1 parent ffe9f92 commit 8859693
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## v4.16.1 (April 28, 2024)

### Fixed

- Fixed bug where active account would not update after auto-receiving.

## v4.16.0 (April 28, 2024)

### Changed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "thebananostand",
"version": "4.16.0",
"version": "4.16.1",
"scripts": {
"ng": "ng",
"start": "ng serve --open --host 0.0.0.0",
Expand Down
5 changes: 3 additions & 2 deletions src/app/services/wallet-events.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export const SELECTED_SPYGLASS_API_DATASOURCE_CHANGE = new Subject<Datasource>()
/** A transaction has been broadcast onto the network successfully. */
export const TRANSACTION_COMPLETED_SUCCESS = new Subject<{
txHash?: string;
accountIndex: number;
accountIndex?: number;
recipient?: string;
}>();

Expand Down Expand Up @@ -475,7 +475,7 @@ export class WalletEventsService {
});

TRANSACTION_COMPLETED_SUCCESS.subscribe((data) => {
if (this.store.hasUnlockedSecret) {
if (this.store.hasUnlockedSecret && data.accountIndex !== undefined) {
// Do not refresh for ledger devices; the signer is already in progress and subsequent calls will fail at this point.
REFRESH_SPECIFIC_ACCOUNT_BY_INDEX.next(data.accountIndex);
this.store.accounts.map((account) => {
Expand Down Expand Up @@ -527,6 +527,7 @@ export class WalletEventsService {
this._snackbar.dismiss();
}, SNACKBAR_DURATION);
REFRESH_DASHBOARD_ACCOUNTS.next();
TRANSACTION_COMPLETED_SUCCESS.next({});
});

USER_CANCEL_AUTO_RECEIVE.subscribe(() => {
Expand Down

0 comments on commit 8859693

Please sign in to comment.