Skip to content

Commit

Permalink
auction: fix NaN HNS lockup value (#396)
Browse files Browse the repository at this point in the history
Math.max takes elements as arguments, not 1 arg of elements array
  • Loading branch information
rithvikvibhu committed Feb 6, 2022
1 parent 5d43c50 commit d20c69a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/pages/Auction/BidActionPanel/Reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Reveal extends Component {
render() {
const {domain, hasRevealableBid} = this.props;
const {bids = [], info} = domain || {};
const highest = Math.max(bids.map(bid => bid.value));
const highest = Math.max(...bids.map(bid => bid.value));
const {t} = this.context;

return (
Expand Down

0 comments on commit d20c69a

Please sign in to comment.