Skip to content

Commit

Permalink
DemandMonitorPage: onLoginClick - tracking added (#1236)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitto-moz authored Dec 5, 2024
1 parent 852caef commit c2b14b1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export const _DemandMonitorPageContainer: FC<Props> = ({ isAuthenticated, ...pro
}

const mapStoreToProps = (store: RootStore): any => ({
onLoginClick: store.auth.login,
onLoginClick: () => {
store.analytics.trackButtonClicked('login_button', 'Log In Button', 'enabled')
store.auth.login()
},
fetchDemandedHardwarePerformanceList: store.demandMonitor.fetchDemandedHardwarePerformanceList,
isAuthenticated: store.auth.isAuthenticated,
demandedHardwarePerformanceList: store.demandMonitor.demandedHardwarePerformanceList,
Expand Down

0 comments on commit c2b14b1

Please sign in to comment.