Skip to content

Commit

Permalink
Merge pull request #1164 from brave/fix-2645
Browse files Browse the repository at this point in the history
Fixes custom publisher tipping amounts
  • Loading branch information
NejcZdovc committed Dec 21, 2018
2 parents e899963 + f1b3898 commit 2bd242d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class Banner extends React.Component<Props, State> {

let amounts = [1, 5, 10]

if (publisher && publisher.amount) {
amounts = publisher.amount
if (publisher && publisher.amounts && publisher.amounts.length) {
amounts = publisher.amounts
}

return amounts.map((value: number) => {
Expand Down
2 changes: 1 addition & 1 deletion components/definitions/rewardsDonate.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ declare namespace RewardsDonate {
description: string
background: string
logo: string
amount: number[],
amounts: number[],
provider: string
social: Record<string, string>
}
Expand Down

0 comments on commit 2bd242d

Please sign in to comment.