Socket
Socket
Sign inDemoInstall

react-redux-alerts

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-redux-alerts - npm Package Compare versions

Comparing version 1.5.2 to 1.5.3

6

lib/alertContainer.js

@@ -77,6 +77,4 @@ 'use strict';

function mapStateToProps(state) {
var alert = state[alertName];
var visbility = alert ? alert.isVisible : false;
var message = alert ? alert.message : '';
return { isVisible: visbility, message: message };
return { isVisible: state.alerts ? state.alerts[alertName] : false };
};

@@ -83,0 +81,0 @@

{
"name": "react-redux-alerts",
"version": "1.5.2",
"version": "1.5.3",
"description": "A lightweight library for creating keyed alerts in a Redux app",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -30,6 +30,4 @@ import React, { Component } from 'react';

function mapStateToProps (state) {
const alert = state[alertName];
const visbility = alert ? alert.isVisible : false;
const message = alert ? alert.message : '';
return { isVisible: visbility, message};
return { isVisible: state.alerts ? state.alerts[alertName] : false };
};

@@ -36,0 +34,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc