mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 11:49:59 +00:00
🐛 Fixing email submission for invited users who opted to be contacted (#4032)
fix(editor): Fixing email submission for invited users who opted to be contacted on signup
This commit is contained in:
committed by
GitHub
parent
fff0ce62d3
commit
88c15a9d7b
@@ -322,7 +322,8 @@ const module: Module<IUiState, IRootState> = {
|
|||||||
submitContactEmail: async (context: ActionContext<IUiState, IRootState>, { email, agree }) => {
|
submitContactEmail: async (context: ActionContext<IUiState, IRootState>, { email, agree }) => {
|
||||||
const instanceId = context.rootGetters.instanceId;
|
const instanceId = context.rootGetters.instanceId;
|
||||||
const currentUser = context.rootGetters['users/currentUser'];
|
const currentUser = context.rootGetters['users/currentUser'];
|
||||||
return await submitEmailOnSignup(instanceId, currentUser, email, agree);
|
|
||||||
|
return await submitEmailOnSignup(instanceId, currentUser, email || currentUser.email, agree);
|
||||||
},
|
},
|
||||||
async openCommunityPackageUninstallConfirmModal(context: ActionContext<IUiState, IRootState>, packageName: string) {
|
async openCommunityPackageUninstallConfirmModal(context: ActionContext<IUiState, IRootState>, packageName: string) {
|
||||||
context.commit('setActiveId', { name: COMMUNITY_PACKAGE_CONFIRM_MODAL_KEY, id: packageName});
|
context.commit('setActiveId', { name: COMMUNITY_PACKAGE_CONFIRM_MODAL_KEY, id: packageName});
|
||||||
|
|||||||
Reference in New Issue
Block a user