Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

don't silent fail in createMutation

Brendan Allan9f12454c9b9a
diff --git a/apps/desktop/src/routes/(window-chrome)/index.tsx b/apps/desktop/src/routes/(window-chrome)/index.tsx
index d06d8102b..cf0436b3c 100644
--- a/apps/desktop/src/routes/(window-chrome)/index.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/index.tsx
@@ -66,12 +66,8 @@ export default function () {
const toggleRecording = createMutation(() => ({
mutationFn: async () => {
- try {
- if (!isRecording()) await commands.startRecording();
- else await commands.stopRecording();
- } catch (error) {
- console.error("Error toggling recording:", error);
- }
+ if (!isRecording()) await commands.startRecording();
+ else await commands.stopRecording();
},
}));