fix: string format skills

This commit is contained in:
Subarashimo
2025-12-05 19:52:25 +01:00
parent 7e47dbfd7c
commit e9317595b6
6 changed files with 33 additions and 7 deletions
+2 -2
View File
@@ -301,8 +301,8 @@ export function validateTrackerData(data) {
}
// Validate skills structure if present
if (data.skills && typeof data.skills !== 'object') {
errors.push('skills must be an object');
if (data.skills && typeof data.skills !== 'object' && typeof data.skills !== 'string') {
errors.push('skills must be an object or a string');
}
// Validate quests structure if present