Skip to content

Commit ac5844e

Browse files
committed
Send version together with feedback
1 parent 8332b65 commit ac5844e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

packages/app/src/app/overmind/utils/pushToAirtable.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
export default async ({ feedback, emoji, sandboxId, username, email }) => {
1+
export default async ({
2+
feedback,
3+
emoji,
4+
sandboxId,
5+
username,
6+
email,
7+
version,
8+
}) => {
29
const Airtable = await import(
310
/* webpackChunkName: 'airtable' */ './setAirtable'
411
);
@@ -13,6 +20,7 @@ export default async ({ feedback, emoji, sandboxId, username, email }) => {
1320
username,
1421
email,
1522
url: window.location.pathname,
23+
version,
1624
},
1725
err => {
1826
if (err) {

packages/app/src/app/pages/common/Modals/FeedbackModal/Feedback.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Margin from '@codesandbox/common/lib/components/spacing/Margin';
2+
import VERSION from '@codesandbox/common/lib/version';
23
import { CurrentUser } from '@codesandbox/common/lib/types';
34
import React, {
45
ChangeEvent,
@@ -54,6 +55,7 @@ const Feedback: FunctionComponent<Props> = ({ id, user }) => {
5455
emoji,
5556
username: (user || {}).username,
5657
email,
58+
version: VERSION,
5759
})
5860
.then(() => {
5961
setEmoji(null);

0 commit comments

Comments
 (0)