Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/reaction-core/client/helpers/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function getReactionApps(optionHash) {
//
for (key in options) {
if ({}.hasOwnProperty.call(options, key)) {
const value = options[key];
let value = options[key];
if (!(key === "enabled" || key === "name" || key === "shopId")) {
filter["registry." + key] = value;
registryFilter[key] = value;
Expand Down Expand Up @@ -157,7 +157,7 @@ function getReactionApps(optionHash) {
for (key in registryFilter) {
// make sure we're dealing with valid keys
if ({}.hasOwnProperty.call(registryFilter, key)) {
value = registryFilter[key];
let value = registryFilter[key];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This variable is redundant. You could just use registryFilter[key] in line 161

if (registry[key] === value) {
match += 1;
}
Expand Down