refactor: Remove console.log statements in util.ts

This commit is contained in:
kwaroran
2024-08-05 17:22:47 +09:00
parent 3f85bd4ee7
commit 9694637a4f

View File

@@ -113,12 +113,10 @@ function checkPersonaBinded(){
const selectedChar = get(selectedCharID)
const character = db.characters[selectedChar]
const chat = character.chats[character.chatPage]
console.log(chat.bindedPersona)
if(!chat.bindedPersona){
return null
}
const persona = db.personas.find(v => v.id === chat.bindedPersona)
console.log(db.personas, persona)
return persona
} catch (error) {
return null
@@ -136,7 +134,6 @@ export function getUserName(){
export function getUserIcon(){
const bindedPersona = checkPersonaBinded()
console.log(`Icon: ${bindedPersona?.icon}`)
if(bindedPersona){
return bindedPersona.icon
}