Skip to content

Commit

Permalink
revert to original code style
Browse files Browse the repository at this point in the history
  • Loading branch information
bangonicdd2 committed Feb 3, 2024
1 parent 10d9101 commit 61cdd2f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/ts/persona.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ export async function selectUserImg() {

export function saveUserPersona() {
let db = get(DataBase)
db.personas[db.selectedPersona].name = db.username;
db.personas[db.selectedPersona].icon = db.userIcon;
db.personas[db.selectedPersona].personaPrompt = db.personaPrompt;
db.personas[db.selectedPersona] = {
name: db.username,
icon: db.userIcon,
personaPrompt: db.personaPrompt,
largePortrait: db.personas[db.selectedPersona].largePortrait,
}
setDatabase(db)
}

Expand Down

0 comments on commit 61cdd2f

Please sign in to comment.