Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/contexts/PrivacyGuardContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const PrivacyGuardProvider: React.FC<{ children: ReactNode }> = ({ childr
// User preference - stored in localStorage
const [enablePrivacyBlur, setEnablePrivacyBlurState] = useState<boolean>(() => {
const saved = localStorage.getItem('enablePrivacyBlur');
return saved !== null ? JSON.parse(saved) : true; // Default enabled
return saved !== null ? (JSON.parse(saved ?? "null") ?? null) : true; // Default enabled
});

// Active blur state
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/features/vault/hooks/useExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export function useExport(): UseExportReturn {
*/
const exportVault = useCallback(async (password: string, format: ExportFormat) => {
// Validate inputs
if (!password || password.trim() === '') {
if (!password || password.trim().length === 0) {
setError('Password is required');
setPhase('ERROR');
return;
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/pages/DashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -376,3 +376,5 @@ const DashboardPage: React.FC = () => {
};

export default DashboardPage;

.catch(err => console.error("Promise.all failed:", err));
2 changes: 1 addition & 1 deletion frontend/src/pages/OrganizationPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const OrganizationPage: React.FC = () => {
// Create a placeholder organization object
// ProfileManager will fetch actual data
const organization: Organization = {
id: parseInt(id || '0'),
id: parseInt(id || '0', 10),
category: categoryId,
name: '', // Will be loaded by ProfileManager
logo_url: null,
Expand Down