mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-28 14:44:15 +00:00
fix: voice and personality issues
This commit is contained in:
parent
d11f32eefb
commit
949e86111a
4 changed files with 4 additions and 5 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -223,7 +223,6 @@ export default function HeadTab({ instructions }: Props) {
|
|||
instructions.current.personality = updated;
|
||||
return updated;
|
||||
});
|
||||
instructions.current.personality = personality;
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue