analytica-frontend-lib 1.4.84 → 1.4.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -36668,12 +36668,15 @@ var useAppStore = (0, import_zustand17.create)()(
36668
36668
  set({ initialized });
36669
36669
  },
36670
36670
  /**
36671
- * Initialize the app by reading the institution ID from meta tag
36671
+ * Initialize the app by reading the institution ID from meta tag.
36672
+ * The meta tag is the source of truth on each load: if the incoming
36673
+ * id differs from the persisted one (e.g. institution changed since
36674
+ * the last session), it overwrites the stale value.
36672
36675
  * @returns {void}
36673
36676
  */
36674
36677
  initialize: (id) => {
36675
- const { initialized } = get();
36676
- if (initialized) {
36678
+ const { initialized, institutionId } = get();
36679
+ if (initialized && institutionId === id) {
36677
36680
  return;
36678
36681
  }
36679
36682
  set({