chore: lint
This commit is contained in:
@@ -60,15 +60,15 @@ export const SaveRecording = ({ fileName }: SaveRecordingProps) => {
|
|||||||
// releases resources and changes the view for main page by clearing the global browserId
|
// releases resources and changes the view for main page by clearing the global browserId
|
||||||
const saveRecording = async () => {
|
const saveRecording = async () => {
|
||||||
if (user) {
|
if (user) {
|
||||||
const payload = { fileName: recordingName, userId: user.id };
|
const payload = { fileName: recordingName, userId: user.id };
|
||||||
console.log('Emitting save with payload:', payload);
|
console.log('Emitting save with payload:', payload);
|
||||||
socket?.emit('save', payload);
|
socket?.emit('save', payload);
|
||||||
setWaitingForSave(true);
|
setWaitingForSave(true);
|
||||||
console.log(`Saving the recording as ${recordingName} for userId ${user.id}`);
|
console.log(`Saving the recording as ${recordingName} for userId ${user.id}`);
|
||||||
} else {
|
} else {
|
||||||
console.error('User not logged in. Cannot save recording.');
|
console.error('User not logged in. Cannot save recording.');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
socket?.on('fileSaved', exitRecording);
|
socket?.on('fileSaved', exitRecording);
|
||||||
|
|||||||
Reference in New Issue
Block a user