Skip to content

A platform for community discussion. Free, open, simple.

FIX: 'currentUser' is a property of the 'widget'

Régis Hanol06e3b25d04f7
diff --git a/app/assets/javascripts/discourse/widgets/post-cooked.js.es6 b/app/assets/javascripts/discourse/widgets/post-cooked.js.es6
index e0541dc4cef..14e2069be1f 100644
--- a/app/assets/javascripts/discourse/widgets/post-cooked.js.es6
+++ b/app/assets/javascripts/discourse/widgets/post-cooked.js.es6
@@ -19,8 +19,8 @@ export default class PostCooked {
if (decoratorHelper) {
this.decoratorHelper = decoratorHelper;
- if (decoratorHelper.widget && decoratorHelper.currentUser) {
- this.currentUser = decoratorHelper.currentUser;
+ if (decoratorHelper.widget && decoratorHelper.widget.currentUser) {
+ this.currentUser = decoratorHelper.widget.currentUser;
}
}