Commit 83e3c7b
committed
fix(API): use strict equality for syncMode in full-node diagnostics
The syncMode ternary used a truthy check for state.sync?.synced while
the synced field on the same line used === true. A non-boolean truthy
value (e.g. 1) would produce synced: false alongside syncMode: 'synced'.1 parent 5275d27 commit 83e3c7b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
0 commit comments