fix: voice and personality issues

This commit is contained in:
trafficlunar 2026-04-05 21:45:57 +01:00
parent d11f32eefb
commit 949e86111a
4 changed files with 4 additions and 5 deletions

View file

@ -27,10 +27,10 @@ export default function VoiceViewer({ data, onChange, onClickTone }: Props) {
min={0}
max={50}
step={1}
value={data[label as keyof typeof data] ?? 25}
value={data[label.toLowerCase() as keyof typeof data] ?? 25}
disabled={!onChange}
onChange={(e) => {
if (onChange) onChange(e, label);
if (onChange) onChange(e, label.toLowerCase());
}}
/>
<div className="absolute h-4 w-1.5 rounded bg-orange-400 z-0"></div>

View file

@ -223,7 +223,6 @@ export default function HeadTab({ instructions }: Props) {
instructions.current.personality = updated;
return updated;
});
instructions.current.personality = personality;
}}
/>
</div>