changed form reset and fixed systemvoice

This commit is contained in:
Polaris
2024-08-26 20:06:33 -04:00
parent bfe2403076
commit e22708f98a
9 changed files with 19 additions and 79 deletions

View File

@ -78,22 +78,15 @@ export const TrophyCustomization: FC<AvatarSelectionProps> = ({
updatePlayerTrophy(newNamePlateId).then(() => {
setTrophyId(newNamePlateId);
});
resetFormValues();
toast({
title: "You submitted the following values:",
description: (
<pre className="mt-2 w-[340px] rounded-md bg-slate-950 p-4">
<code className="text-white">{JSON.stringify(data, null, 2)}</code>
<pre className="mt-2 w-[340px] rounded-md p-4">
<code className="text-white">Trophy updated</code>
</pre>
),
});
function resetFormValues() {
form.reset({
trophies: undefined,
});
}
}
return (