From d99720c606af61957821bfe44034b526d6f4e995 Mon Sep 17 00:00:00 2001 From: Jeremy Herve Date: Wed, 5 Dec 2018 12:26:32 +0100 Subject: [PATCH] Update name of selector to avoid confusion --- _inc/client/state/jitm/actions.js | 2 +- _inc/client/state/jitm/reducer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_inc/client/state/jitm/actions.js b/_inc/client/state/jitm/actions.js index d027a630098bb..11540e3d4c052 100644 --- a/_inc/client/state/jitm/actions.js +++ b/_inc/client/state/jitm/actions.js @@ -33,7 +33,7 @@ export const fetchJitm = ( message_path = '', query_url = 'page=jetpack' ) => { }; }; -export const dismissJitm = ( id, feature_class ) => { +export const getJitmDismissalResponse = ( id, feature_class ) => { return dispatch => { dispatch( { type: JITM_DISMISS diff --git a/_inc/client/state/jitm/reducer.js b/_inc/client/state/jitm/reducer.js index 5fd6eb10fddcb..70872ef10817a 100644 --- a/_inc/client/state/jitm/reducer.js +++ b/_inc/client/state/jitm/reducer.js @@ -97,6 +97,6 @@ export function getJitm( state ) { * @param {Object} state Global state tree * @return {Object} Response */ -export function dismissJitm( state ) { +export function getJitmDismissalResponse( state ) { return get( state.jetpack.jitm, [ 'data', 'response' ], {} ); }