Skip to content

Commit

Permalink
Merge pull request #1014 from brave/bsc-fix-promo-code
Browse files Browse the repository at this point in the history
Correct field name is needed in order to have a valid promo code
  • Loading branch information
bsclifton authored Dec 4, 2018
2 parents 98d0219 + a4e344f commit 3f0f487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utility/importer/brave_importer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ void BraveImporter::ImportReferral() {
// always there). `referralTimestamp` is only present after those
// 90 days elapse. Week of installation should always be present
// but if missing, it shouldn't cancel the import.
if (!TryFindStringKey(updates, "promoCode", referral.promo_code)) {
if (!TryFindStringKey(updates, "referralPromoCode", referral.promo_code)) {
referral.promo_code = "";
}

Expand Down

0 comments on commit 3f0f487

Please sign in to comment.