Fix: correctly track when profile state was last updated

zio/stable
Paul Frazee 2023-04-07 11:10:03 -05:00
parent ab11f206d8
commit e27cd0098f
1 changed files with 1 additions and 0 deletions

View File

@ -115,6 +115,7 @@ export class MeModel {
async updateIfNeeded() {
if (Date.now() - this.lastProfileStateUpdate > PROFILE_UPDATE_INTERVAL) {
this.rootStore.log.debug('Updating me profile information')
this.lastProfileStateUpdate = Date.now()
await this.fetchProfile()
await this.fetchInviteCodes()
}