fix(sandbox): fix TypeScript compilation error in disclosure.ts
The reveal() function was trying to return the result of setXP() which returns void. Fixed by setting XP first, then returning the threshold value. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
164fcd225b
commit
660acbc485
2 changed files with 3 additions and 2 deletions
|
|
@ -1 +1 @@
|
|||
dff235e19318f50109a3f29edcd1f01b6cc94857
|
||||
164fcd225b8d5d0c6179bc1ea3c0ead92004efb3
|
||||
|
|
|
|||
|
|
@ -158,7 +158,8 @@ export function reveal(featureKey: string): number | null {
|
|||
return null;
|
||||
}
|
||||
|
||||
return setXP(feature.xpThreshold);
|
||||
setXP(feature.xpThreshold);
|
||||
return feature.xpThreshold;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue