refactor: Remove console.log statements in util.ts
This commit is contained in:
@@ -113,12 +113,10 @@ function checkPersonaBinded(){
|
|||||||
const selectedChar = get(selectedCharID)
|
const selectedChar = get(selectedCharID)
|
||||||
const character = db.characters[selectedChar]
|
const character = db.characters[selectedChar]
|
||||||
const chat = character.chats[character.chatPage]
|
const chat = character.chats[character.chatPage]
|
||||||
console.log(chat.bindedPersona)
|
|
||||||
if(!chat.bindedPersona){
|
if(!chat.bindedPersona){
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
const persona = db.personas.find(v => v.id === chat.bindedPersona)
|
const persona = db.personas.find(v => v.id === chat.bindedPersona)
|
||||||
console.log(db.personas, persona)
|
|
||||||
return persona
|
return persona
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return null
|
return null
|
||||||
@@ -136,7 +134,6 @@ export function getUserName(){
|
|||||||
|
|
||||||
export function getUserIcon(){
|
export function getUserIcon(){
|
||||||
const bindedPersona = checkPersonaBinded()
|
const bindedPersona = checkPersonaBinded()
|
||||||
console.log(`Icon: ${bindedPersona?.icon}`)
|
|
||||||
if(bindedPersona){
|
if(bindedPersona){
|
||||||
return bindedPersona.icon
|
return bindedPersona.icon
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user