There was an error while loading. Please reload this page.
1 parent 050acc5 commit f432dd6Copy full SHA for f432dd6
1 file changed
client/src/scg.ts
@@ -174,7 +174,8 @@ export function validateScgConfig(data: ScgConfigSchema): boolean {
174
// Validate counters
175
if (data.counters) {
176
for (const counter of data.counters) {
177
- if (typeof counter.name !== 'string' || typeof counter.value !== 'number') return false;
+ if (typeof counter.name !== 'string') return false;
178
+ if (counter.value && typeof counter.value !== 'number') return false;
179
}
180
181
0 commit comments