File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/code/Magento/Customer/Controller/Account Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -70,8 +70,10 @@ public function __construct(
70
70
public function execute ()
71
71
{
72
72
$ customerData = $ this ->jsonHelper ->jsonDecode ($ this ->getRequest ()->getContent ());
73
- $ result = $ this ->notificationStorage ->isExists (NotificationStorage::UPDATE_CUSTOMER_SESSION , $ customerData ['customer_id ' ]);
74
- if (isset ($ customerData ['customer_id ' ]) && $ result ) {
73
+ if (isset ($ customerData ['customer_id ' ]) && $ this ->notificationStorage ->isExists (
74
+ NotificationStorage::UPDATE_CUSTOMER_SESSION ,
75
+ $ customerData ['customer_id ' ])
76
+ ) {
75
77
$ customer = $ this ->customerRepository ->getById ($ customerData ['customer_id ' ]);
76
78
$ this ->session ->setCustomerData ($ customer );
77
79
$ this ->session ->setCustomerGroupId ($ customer ->getGroupId ());
You can’t perform that action at this time.
0 commit comments