fix: classica js falsy bug

This commit is contained in:
Subarashimo
2025-12-03 22:45:58 +01:00
parent c24515db7e
commit b5f5f6d9c5
+1 -1
View File
@@ -570,7 +570,7 @@ export function generateRPGPromptText() {
if (customStats.length > 0) { if (customStats.length > 0) {
previousState.stats = {}; previousState.stats = {};
for (const stat of customStats) { for (const stat of customStats) {
previousState.stats[stat.name] = extensionSettings.userStats[stat.id] || 100; previousState.stats[stat.name] = extensionSettings.userStats[stat.id] ?? 100;
} }
} }