fix: add user feedback for snapshot deletion failures (#1197)

- Add toast.error notification when snapshot deletion fails
- Preserve console.error logging for debugging
- Consistent with error handling patterns in other components
- Improves user experience by providing visible error feedback
This commit is contained in:
SohamBhattacharjee2003 2026-04-09 22:09:49 +05:30
parent d5f46dd7de
commit 9ed85af2a5

View file

@ -74,6 +74,7 @@ export function PublicChatSnapshotsManager({
});
} catch (error) {
console.error("Failed to delete snapshot:", error);
toast.error("Failed to delete snapshot");
} finally {
setDeletingId(undefined);
}