From a4e344fe3e1c56bf032bb3060cecaa289877c516 Mon Sep 17 00:00:00 2001 From: Brian Clifton Date: Mon, 3 Dec 2018 22:00:11 -0700 Subject: [PATCH] Correct field name is needed in order to have a valid promo code :) Fixes https://github.com/brave/brave-browser/issues/2344 --- utility/importer/brave_importer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utility/importer/brave_importer.cc b/utility/importer/brave_importer.cc index effd6241f3d3..53d9c571f9ef 100644 --- a/utility/importer/brave_importer.cc +++ b/utility/importer/brave_importer.cc @@ -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 = ""; }