Skip to content

Commit 5ea5920

Browse files
authored
Merge pull request #104 from xrash/fix-not-running-getflags-after-identify
Do not depend on listener to run getFlags
2 parents 70373d8 + ae3b695 commit 5ea5920

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flagsmith-core.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ const Flagsmith = class {
336336
if(traits) {
337337
this.withTraits = traits;
338338
}
339-
if (this.initialised && !this.getFlagInterval) {
339+
if (this.initialised) {
340340
return this.getFlags();
341341
}
342342
return Promise.resolve();
@@ -393,7 +393,7 @@ const Flagsmith = class {
393393
this.identity = null;
394394
this.segments = null;
395395
this.traits = null;
396-
if (this.initialised && !this.getFlagInterval) {
396+
if (this.initialised) {
397397
return this.getFlags();
398398
}
399399
return Promise.resolve();

0 commit comments

Comments
 (0)