Skip to content

Commit 377788d

Browse files
committed
fix: the EVENT_ENTITLEMENTS_CHANGED was firing with null entitlements
1 parent e584fc0 commit 377788d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/promotions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,8 @@ define(function (require, exports, module) {
292292

293293
// Also trigger entitlements changed event since effective entitlements have changed
294294
// This allows UI components to update based on the new trial status
295-
LoginService.trigger(LoginService.EVENT_ENTITLEMENTS_CHANGED, null);
295+
const effectiveEntitlements = await LoginService.getEffectiveEntitlements();
296+
LoginService.trigger(LoginService.EVENT_ENTITLEMENTS_CHANGED, effectiveEntitlements);
296297
}
297298

298299
function _isAnyDialogsVisible() {

0 commit comments

Comments
 (0)