Fix: correctly track when profile state was last updated
parent
ab11f206d8
commit
e27cd0098f
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue