Commit 5dfad0e
Syshub001v1 sg05 improve cli command visibility (#161)
* Add debugging and fallback for budget data
- Add console logging to debug superBlockData structure
- Add fallback handling for budget data with optional chaining
- Handle cases where budget data might be undefined or have different structure
* Fix budget data structure access
- Remove incorrect .result property access from budget data
- Use direct sb1Budget, sb2Budget, etc. properties as per API structure
- Remove debugging console logs
- Add fallback to 0 for missing budget values
Based on API response from https://syshub-staging.syscoin.org/api/statsInfo/mnStats
---------
Co-authored-by: Ted Ian Osias <ted@syscoin.org>1 parent ec696d4 commit 5dfad0e
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
0 commit comments