Commit fd470686 authored by Jonathan Porta's avatar Jonathan Porta
Browse files

When JS gives you NAN make Garlic NAAN.

parent 95cc1c2a
......@@ -43,7 +43,7 @@ export default function Proposal(props) {
const end = new Date(props.end_date);
const duration = end - start;
const durationInDays = Moment(end).diff(Moment(start), 'days');
const totalPayout = durationInDays * daily_pay.amount;
const totalPayout = durationInDays * daily_pay.split(' SBD')[0]; // ¯\_(ツ)_/¯
console.log(
'PROPOSAL-RENDER(isUpVoted, voteSucceeded, voteFailed, isVoting)',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment