fix: userbox save all not saving username

This commit is contained in:
sk1982 2024-04-12 05:07:51 -04:00
parent c96d9a5922
commit c00c429ede

View File

@ -88,7 +88,7 @@ export const ChuniUserbox = ({ profile, userboxItems }: ChuniUserboxProps) => {
const save = <K extends keyof SavedItem>(...items: K[]) => { const save = <K extends keyof SavedItem>(...items: K[]) => {
if (!items.length) if (!items.length)
items = Object.keys(ITEM_KEYS) as any; items = [...Object.keys(ITEM_KEYS) as any, 'username'];
const update: Partial<ProfileUpdate> = Object.fromEntries((Object.entries(equipped) as Entries<typeof equipped>) const update: Partial<ProfileUpdate> = Object.fromEntries((Object.entries(equipped) as Entries<typeof equipped>)
.filter(([k]) => items.includes(k as any)) .filter(([k]) => items.includes(k as any))