@xsolla/xui-b2c-quest-card 0.172.2 → 0.173.0

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/web/index.mjs CHANGED
@@ -3906,7 +3906,7 @@ var QuestCard = ({
3906
3906
  const isDisabled = disabled || state === "disabled" || DISABLED_QUEST_STATES.includes(questState);
3907
3907
  const isInteractive = Boolean(onPress) && !isDisabled;
3908
3908
  const isActionInteractive = Boolean(onActionPress) && !isDisabled;
3909
- const resolvedStatus = status ?? getDefaultStatus(questState);
3909
+ const resolvedStatus = status === void 0 ? getDefaultStatus(questState) : status;
3910
3910
  const statusIcon = getStatusIcon(questState);
3911
3911
  const statusColor = questState === "completed" || questState === "claimed" ? theme.colors.content.success.primary : questState === "expiring" ? theme.colors.content.alert.primary : questState === "active" ? theme.colors.content.brand.primary : theme.colors.content.primary;
3912
3912
  const activeBackground = state === "press" ? theme.colors.overlay.brand || theme.colors.overlay.mono : state === "hover" ? theme.colors.background.secondary : theme.colors.overlay.mono;