Skip to content

Commit 300b12b

Browse files
committed
fix: the EVENT_ENTITLEMENTS_CHANGED was firing with null entitlements
1 parent 9b9d6c8 commit 300b12b

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)