Fix unused variables and formatting from console.log cleanup

- Remove unused existingResult variable from importFromMnemonic function
- Fix empty catch block with proper error handling in ImportAccountView.vue
- Simplify debug database check in OnboardMeetingListView.vue
- Apply prettier formatting fixes across all modified files
- Resolve all 12 lint errors, maintaining only 16 pre-existing warnings
- Verify build passes with all changes
This commit is contained in:
Matthew Raymer
2025-07-08 09:44:53 +00:00
parent ebf7743862
commit d8686ab562
4 changed files with 15 additions and 77 deletions

View File

@@ -154,32 +154,16 @@ export default class OnboardMeetingListView extends Vue {
showPasswordDialog = false;
async created() {
const settings = await this.$accountSettings();
if (settings?.activeDid) {
try {
// Check master settings
const masterSettings = await this.$query(
"SELECT * FROM settings WHERE id = ?",
[1],
);
// Check account-specific settings
const accountSettings = await this.$query(
"SELECT * FROM settings WHERE accountDid = ?",
[settings.activeDid],
);
// Check if there are any settings with isRegistered = 1
const registeredSettings = await this.$query(
"SELECT * FROM settings WHERE isRegistered = 1",
);
// Check all settings for this user
const allSettings = await this.$query("SELECT * FROM settings");
// Verify database settings are accessible
await this.$query("SELECT * FROM settings WHERE accountDid = ?", [
settings.activeDid,
]);
} catch (error) {
logger.error("Error checking raw database:", error);
logger.error("Error checking database settings:", error);
}
}