@singi-labs/sifa-sdk 0.14.2 → 0.14.5

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.
@@ -167,7 +167,7 @@ async function fetchGetProfileView(config, actor, options = {}) {
167
167
  // src/logic/primary-position.ts
168
168
  function pickPrimaryPosition(positions) {
169
169
  if (!positions || positions.length === 0) return void 0;
170
- const active = positions.filter((p) => !p.endedAt);
170
+ const active = positions.filter((p) => !p.endedAt && !p.hidden);
171
171
  if (active.length === 0) return void 0;
172
172
  const flagged = active.find((p) => p.primary === true);
173
173
  if (flagged) return flagged;