tellor-io/tellorscan

Non-Boolean Ternary Operation in Determining Outcome of Disputes

Closed this issue · 1 comments

A ternary operation against a non-boolean valaue is currently determining the outcome of disputes, and is marking all past disputes as having passed

              <div className={record.result? "green bold":"bold"}><p>{record.result? <CheckOutlined />:<CloseOutlined />} Dispute {record.result? "Passed":"Rejected"}</p></div>

record.result in this case being the numeric result of the vote and not the dispute passed boolean.