Skip to content

Commit

Permalink
avoid potential error just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
bangonicdd2 committed Feb 3, 2024
1 parent 61cdd2f commit 51dc0b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/persona.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function saveUserPersona() {
name: db.username,
icon: db.userIcon,
personaPrompt: db.personaPrompt,
largePortrait: db.personas[db.selectedPersona].largePortrait,
largePortrait: db.personas[db.selectedPersona]?.largePortrait,
}
setDatabase(db)
}
Expand Down

0 comments on commit 51dc0b1

Please sign in to comment.