Fix: correctly track when profile state was last updated

This commit is contained in:
Paul Frazee 2023-04-07 11:10:03 -05:00
parent ab11f206d8
commit e27cd0098f

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()
}