fix: On test page, switch back to the current user (and not User 0).

This commit is contained in:
2025-08-24 16:10:50 -06:00
parent 03cc47eae0
commit 270e7ec8eb
5 changed files with 18 additions and 7 deletions

View File

@@ -657,7 +657,7 @@ export async function saveNewIdentity(
await platformService.updateDefaultSettings({ activeDid: identity.did });
await platformService.insertDidSpecificSettings(identity.did);
await platformService.insertNewDidIntoSettings(identity.did);
} catch (error) {
logger.error("Failed to update default settings:", error);
throw new Error(
@@ -954,7 +954,7 @@ export async function importFromMnemonic(
try {
// First, ensure the DID-specific settings record exists
await platformService.insertDidSpecificSettings(newId.did);
await platformService.insertNewDidIntoSettings(newId.did);
// Then update with Test User #0 specific settings
await platformService.updateDidSpecificSettings(newId.did, {