Socket
Socket
Sign inDemoInstall

react-redux-alerts

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.5.0 to 1.5.1

4

lib/alertContainer.js

@@ -77,3 +77,5 @@ 'use strict';

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

@@ -80,0 +82,0 @@

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

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

@@ -30,3 +30,5 @@ import React, { Component } from 'react';

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

@@ -33,0 +35,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc