useMetaDetails first argument of reduce renamed

This commit is contained in:
svetlagasheva 2020-04-16 14:09:41 +03:00
parent 001f52bfd4
commit e4f8cbbb04

View file

@ -53,12 +53,12 @@ const mapMetaDetailsStateWithCtx = (meta_details, ctx) => {
})
:
null,
addon: ctx.profile.addons.reduce((origin, addon) => {
addon: ctx.profile.addons.reduce((result, addon) => {
if (addon.transportUrl === meta_resource.request.base) {
return addon;
}
return origin;
return result;
}, null)
};
});