Skip to content

Commit 9ec7e52

Browse files
committed
Fix feedback modal on dashboard
1 parent 6c25d6a commit 9ec7e52

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
} from './elements';
2020

2121
type Props = {
22-
id: string;
22+
id?: string;
2323
user?: CurrentUser;
2424
};
2525
const Feedback: FunctionComponent<Props> = ({ id, user }) => {
@@ -49,7 +49,7 @@ const Feedback: FunctionComponent<Props> = ({ id, user }) => {
4949
setLoading(true);
5050

5151
pushToAirtable({
52-
sandboxId: id,
52+
sandboxId: id || '',
5353
feedback,
5454
emoji,
5555
username: (user || {}).username,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const FeedbackModal: FunctionComponent = () => {
2020
<Container>
2121
<Heading>Submit Feedback</Heading>
2222

23-
<Feedback user={user} id={currentSandbox.id} />
23+
<Feedback user={user} id={currentSandbox?.id} />
2424
</Container>
2525
);
2626
};

0 commit comments

Comments
 (0)