Skip to content

Commit

Permalink
Fix crash with category opt action on rewards page.
Browse files Browse the repository at this point in the history
  • Loading branch information
aseren committed Dec 17, 2021
1 parent 6ba6ea4 commit 6f119a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vendor/bat-native-ads/src/bat/ads/category_content_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ base::DictionaryValue CategoryContentInfo::ToValue() const {
base::DictionaryValue dictionary;

dictionary.SetKey("category", base::Value(category));
dictionary.SetKey("opt_action",
dictionary.SetKey("optAction",
base::Value(static_cast<int>(opt_action_type)));

return dictionary;
Expand All @@ -48,7 +48,7 @@ bool CategoryContentInfo::FromValue(const base::Value& value) {
}

const absl::optional<int> opt_action_type_optional =
dictionary->FindIntKey("opt_action");
dictionary->FindIntKey("optAction");
if (opt_action_type_optional) {
opt_action_type = static_cast<CategoryContentOptActionType>(
opt_action_type_optional.value());
Expand Down

0 comments on commit 6f119a8

Please sign in to comment.