We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeb0429 commit ba37234Copy full SHA for ba37234
frontend/src/components/session/MediaPreviewModal.tsx
@@ -118,7 +118,11 @@ const MediaPreviewModal = ({
118
className={"text-semibold-r mt-4 flex w-full justify-center gap-4"}
119
>
120
<button
121
- onClick={onReject}
+ onClick={() => {
122
+ onReject();
123
+ setReady(false);
124
+ preview?.getTracks().forEach((track) => track.stop());
125
+ }}
126
className={
127
"rounded-custom-m px-16 py-4 bg-gray-50 hover:bg-gray-100"
128
}
0 commit comments