Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Adding referral code token atribution for release
Browse files Browse the repository at this point in the history
  • Loading branch information
soner-yuksel committed Oct 6, 2023
1 parent 4949cad commit 5bd6ee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions App/iOS/Delegates/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ extension BrowserViewController {
}
}

private func generateReferralCode(attributionData: AdAttributionData?, fetchError: Error?) -> String {
private func generateReferralCode(attributionData: AdAttributionData?, fetchError: Error?) -> String? {
// Checking referral code from User Referral program exists If not send 001
// Prefix this code with BRV for organic iOS installs
var referralCode = "BRV\(UserReferralProgram.getReferralCode() ?? "001")"
Expand All @@ -560,7 +560,7 @@ extension BrowserViewController {
}
}

return referralCode
return AppConstants.buildChannel == .release ? referralCode : UserReferralProgram.getReferralCode()
}

private func performProgramReferralLookup(_ urp: UserReferralProgram, refCode: String?) {
Expand Down

0 comments on commit 5bd6ee5

Please sign in to comment.