()
| 148 | * Returns the reward info if the user is in a v1 campaign, null otherwise |
| 149 | */ |
| 150 | export function getCachedReferrerReward(): ReferrerRewardInfo | null { |
| 151 | const orgId = getOauthAccountInfo()?.organizationUuid |
| 152 | if (!orgId) return null |
| 153 | const config = getGlobalConfig() |
| 154 | const cachedEntry = config.passesEligibilityCache?.[orgId] |
| 155 | return cachedEntry?.referrer_reward ?? null |
| 156 | } |
| 157 | |
| 158 | /** |
| 159 | * Get the cached remaining passes count from eligibility cache |
no test coverage detected