|
|
@ -61,7 +61,7 @@ export function useSubmitGlasserAssessmentMutation( |
|
|
queryKey: marriageQueryKeys.glasserResult(), |
|
|
queryKey: marriageQueryKeys.glasserResult(), |
|
|
}); |
|
|
}); |
|
|
queryClient.setQueriesData<FormSchemaResponse>( |
|
|
queryClient.setQueriesData<FormSchemaResponse>( |
|
|
{ queryKey: ["marriage", "form-schema", "profile"] }, |
|
|
|
|
|
|
|
|
{ queryKey: [...marriageQueryKeys.all, "form-overview"] }, |
|
|
(schema) => { |
|
|
(schema) => { |
|
|
if (!schema) return schema; |
|
|
if (!schema) return schema; |
|
|
const slug = "glasser_5_needs_test"; |
|
|
const slug = "glasser_5_needs_test"; |
|
|
@ -84,11 +84,19 @@ export function useSubmitGlasserAssessmentMutation( |
|
|
total_steps: 1, |
|
|
total_steps: 1, |
|
|
completion_percent: 100, |
|
|
completion_percent: 100, |
|
|
}, |
|
|
}, |
|
|
|
|
|
glasser: { |
|
|
|
|
|
current_step: 1, |
|
|
|
|
|
total_steps: 1, |
|
|
|
|
|
completion_percent: 100, |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
); |
|
|
); |
|
|
|
|
|
await queryClient.invalidateQueries({ |
|
|
|
|
|
queryKey: [...marriageQueryKeys.all, "form-overview"], |
|
|
|
|
|
}); |
|
|
await options?.onSuccess?.(data, variables, onMutateResult, context); |
|
|
await options?.onSuccess?.(data, variables, onMutateResult, context); |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
|