fix: classica js falsy bug
This commit is contained in:
1 parent
c24515db7e
commit
b5f5f6d9c5
1 file changed
+1
-1
@@ -570,7 +570,7 @@ export function generateRPGPromptText() {
|
||||
if (customStats.length > 0) {
|
||||
previousState.stats = {};
|
||||
for (const stat of customStats) {
|
||||
previousState.stats[stat.name] = extensionSettings.userStats[stat.id] || 100;
|
||||
previousState.stats[stat.name] = extensionSettings.userStats[stat.id] ?? 100;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user