Skip to content

Commit 6a2a8ba

Browse files
committed
check explicitly for null
1 parent 6c175ce commit 6a2a8ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/eppo-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default class EppoClient implements IEppoClient {
8181
assignmentHooks: IAssignmentHooks,
8282
): Promise<string> {
8383
let assignment = await assignmentHooks?.onPreAssignment(subjectKey);
84-
if (!assignment) {
84+
if (assignment == null) {
8585
assignment = this.getAssignment(subjectKey, experimentKey, subjectAttributes);
8686
}
8787

0 commit comments

Comments
 (0)