()
| 163 | * Returns the reward info if the user is in a v1 campaign, null otherwise |
| 164 | */ |
| 165 | export function getCachedReferrerReward(): ReferrerRewardInfo | null { |
| 166 | const orgId = getCurrentReferralOrganizationUuid() |
| 167 | if (!orgId) return null |
| 168 | const config = getGlobalConfig() |
| 169 | const cachedEntry = config.passesEligibilityCache?.[orgId] |
| 170 | return cachedEntry?.referrer_reward ?? null |
| 171 | } |
| 172 | |
| 173 | /** |
| 174 | * Get the cached remaining passes count from eligibility cache |
no test coverage detected