Remove redundant console logs and comments across components
- Cleaned up unused debug logs and comments in `AddNewBookForm`, `QuillConversation`, `OfflinePinSetup`, `OfflinePinVerify`, `ShortStoryGenerator`, and `page.tsx`. - Improved overall code readability and maintainability.
This commit is contained in:
@@ -54,14 +54,10 @@ export default function OfflinePinSetup({ onClose, onSuccess, showOnFirstLogin }
|
||||
|
||||
try {
|
||||
if (window.electron) {
|
||||
// Set the PIN
|
||||
const result = await window.electron.offlinePinSet(pin);
|
||||
|
||||
if (result.success) {
|
||||
// Enable offline mode
|
||||
await window.electron.offlineModeSet(true, 30); // 30 days sync interval
|
||||
|
||||
console.log('[OfflinePin] PIN configured successfully');
|
||||
onSuccess?.();
|
||||
} else {
|
||||
setError(result.error || t('offline.pin.errors.setupFailed'));
|
||||
|
||||
Reference in New Issue
Block a user