Skip to content

Commit 9478076

Browse files
committed
Emit sync status as complete rather than the current status
This prevents sending an incorrect in progress sync status update once sync completes. The syncStatus is set to its correct state after the pending blocks are cleared.
1 parent 272cb5e commit 9478076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/background/synchronizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class Synchronizer extends EventEmitter {
159159

160160
await this.updateSyncHeight();
161161
this.emitSyncUpdate({
162-
status: this.syncStatus,
162+
status: SyncStatus.Complete,
163163
newData: {
164164
totalBalance: totalBalance.amount.toString(),
165165
txs,

0 commit comments

Comments
 (0)