fix problem clicking on offer-delivery, plus some other hardening and phrasing

This commit is contained in:
2025-06-08 20:13:32 -06:00
parent 26951cc472
commit 34194b2bbc
7 changed files with 17 additions and 21 deletions

View File

@@ -107,7 +107,6 @@ export async function retrieveSettingsForActiveAccount(): Promise<Settings> {
try {
// Get default settings first
const defaultSettings = await retrieveSettingsForDefaultAccount();
// If no active DID, return defaults
if (!defaultSettings.activeDid) {
logConsoleAndDb(
@@ -280,10 +279,8 @@ export function generateUpdateStatement(
const params: unknown[] = [];
Object.entries(model).forEach(([key, value]) => {
if (value !== undefined) {
setClauses.push(`${key} = ?`);
params.push(value);
}
setClauses.push(`${key} = ?`);
params.push(value ?? null);
});
if (setClauses.length === 0) {