Skip to content

Commit

Permalink
fix: pass the emails to the form wizard
Browse files Browse the repository at this point in the history
  • Loading branch information
g-tejas committed Jan 24, 2025
1 parent 45365aa commit 82e77a7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ const useCreateFormWizardContext = (): CreateFormWizardContextReturn => {
const workspaceId = isDefaultWorkspace ? undefined : activeWorkspace._id

const handleCreateStorageModeOrMultirespondentForm = handleSubmit(
({ title, responseMode }) => {
({ title, responseMode, emails }) => {
switch (responseMode) {
case FormResponseMode.Encrypt:
return createStorageModeFormMutation.mutate({
title,
responseMode,
publicKey: keypair.publicKey,
workspaceId,
emails: [],
emails: emails.filter(Boolean),
})
case FormResponseMode.Email:
return
Expand Down

0 comments on commit 82e77a7

Please sign in to comment.