Skip to content

Commit

Permalink
20240604 @Mookse (#233)
Browse files Browse the repository at this point in the history
- isValidating/isCreatingAccount fix
  • Loading branch information
Mookse authored Jun 4, 2024
1 parent 15d753b commit 0893b7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/js/mylife-agent-factory.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -898,15 +898,15 @@ class MyLifeFactory extends AgentFactory {
* @returns {boolean} - Avatar is in `accountCreation` mode (true) or not (false).
*/
get isCreatingAccount(){
return this.#mylifeRegistrationData!==null
return this.#mylifeRegistrationData!=null
}
/**
* Test whether factory is currently `validating` a session.
* @getter
* @returns {boolean} - Avatar is in `registering` mode (true) or not (false).
*/
get isValidating(){
return this.#tempRegistrationData!==null
return this.#tempRegistrationData!=null
}
}
// private module functions
Expand Down
1 change: 1 addition & 0 deletions inc/js/mylife-avatar.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ class Avatar extends EventEmitter {
chatMessage = `CONFIRM REGISTRATION: ${ chatMessage }`
if(this.isCreatingAccount)
chatMessage = `CREATE ACCOUNT: ${ chatMessage }`
console.log('chatRequest::MyLife', activeBotId, threadId, chatMessage)
}
if(!chatMessage)
throw new Error('No message provided in context')
Expand Down

0 comments on commit 0893b7d

Please sign in to comment.