Make currentPage a required param for sendFeedback

This commit is contained in:
ernstmul
2024-11-07 11:16:24 +01:00
parent 5a6c44994c
commit 0c59ce226b
4 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -18,10 +18,10 @@
await feedback.submitFeedback(
`feedback-${$feedback.type}`,
$feedbackData.message,
$page.url.href,
$user.name,
$user.email,
$organization.billingPlan,
$page.url.href,
$feedbackData.value
);
addNotification({
+2 -2
View File
@@ -112,12 +112,12 @@ function createFeedbackStore() {
submitFeedback: async (
subject: string,
message: string,
currentPage: string,
name?: string,
email?: string,
// eslint-disable-next-line
// @ts-expect-error
billingPlan?: string,
currentPage?: string,
value?: number
) => {
if (!VARS.GROWTH_ENDPOINT) return;
@@ -133,7 +133,7 @@ function createFeedbackStore() {
// billingPlan,
firstname: name || 'Unknown',
customFields: [
{ id: '47364', value: currentPage ?? '' },
{ id: '47364', value: currentPage },
...(value ? [{ id: '40655', value }] : [])
],
metaFields: {