Skip to content

Commit dca9a82

Browse files
authored
incrementTrait throws an error
This only shows up if you have onError set log out errors. the message that comes back: `TypeError: t is not a function`
1 parent a1420fc commit dca9a82

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

flagsmith-core.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,7 @@ const Flagsmith = class {
506506
increment_by,
507507
identifier: identity
508508
}))
509-
// @ts-ignore
510-
.then(this.getFlags)
509+
.then(() => this.getFlags())
511510
};
512511

513512
hasFeature = (key) => {

0 commit comments

Comments
 (0)