From 3e03aaf1e8ecdad62a195afd4aaed5a8d7e83a37 Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Wed, 3 Sep 2025 07:45:58 +0000 Subject: [PATCH] migrate: OfferDialog.vue to use () API - Replace settings.activeDid with () pattern - Maintains backward compatibility with existing functionality - Component now uses active_identity table as single source of truth - Part of ActiveDid migration (1/32 components completed) --- src/components/OfferDialog.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/OfferDialog.vue b/src/components/OfferDialog.vue index a958bd06..863ff70f 100644 --- a/src/components/OfferDialog.vue +++ b/src/components/OfferDialog.vue @@ -175,7 +175,10 @@ export default class OfferDialog extends Vue { const settings = await this.$accountSettings(); this.apiServer = settings.apiServer || ""; - this.activeDid = settings.activeDid || ""; + + // Get activeDid from active_identity table (single source of truth) + const activeIdentity = await this.$getActiveIdentity(); + this.activeDid = activeIdentity.activeDid || ""; // eslint-disable-next-line @typescript-eslint/no-explicit-any } catch (err: any) {