Skip to content

Commit

Permalink
Merge pull request #104 from xrash/fix-not-running-getflags-after-ide…
Browse files Browse the repository at this point in the history
…ntify

Do not depend on listener to run getFlags
  • Loading branch information
kyle-ssg committed Mar 23, 2022
2 parents 70373d8 + ae3b695 commit 5ea5920
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flagsmith-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ const Flagsmith = class {
if(traits) {
this.withTraits = traits;
}
if (this.initialised && !this.getFlagInterval) {
if (this.initialised) {
return this.getFlags();
}
return Promise.resolve();
Expand Down Expand Up @@ -393,7 +393,7 @@ const Flagsmith = class {
this.identity = null;
this.segments = null;
this.traits = null;
if (this.initialised && !this.getFlagInterval) {
if (this.initialised) {
return this.getFlags();
}
return Promise.resolve();
Expand Down

0 comments on commit 5ea5920

Please sign in to comment.