Skip to content

Commit ee684c7

Browse files
reducer name change bug
1 parent f116d9e commit ee684c7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/compass-generative-ai/src/components/ai-optin-modal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ const AIOptInModal: React.FunctionComponent<OptInModalProps> = ({
103103
export default connect(
104104
(state: AtlasOptInState) => {
105105
return {
106-
isOptInModalVisible: state.optInReducer.isModalOpen,
107-
isOptInInProgress: state.optInReducer.state === 'in-progress',
106+
isOptInModalVisible: state.optIn.isModalOpen,
107+
isOptInInProgress: state.optIn.state === 'in-progress',
108108
};
109109
},
110110
{ onOptInModalClose: closeOptInModal, onOptInClick: optIn }

packages/compass-generative-ai/src/components/ai-signin-modal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ const AISignInModal: React.FunctionComponent<SignInModalProps> = ({
102102
export default connect(
103103
(state: AtlasSignInState) => {
104104
return {
105-
isSignInModalVisible: state.signInReducer.isModalOpen,
106-
isSignInInProgress: state.signInReducer.state === 'in-progress',
105+
isSignInModalVisible: state.signIn.isModalOpen,
106+
isSignInInProgress: state.signIn.state === 'in-progress',
107107
};
108108
},
109109
{ onSignInModalClose: closeSignInModal, onSignInClick: signIn }

0 commit comments

Comments
 (0)