Fix joke which broke everything

This commit is contained in:
Marco van Dijk 2022-03-21 12:16:06 +01:00
parent ae2c5d9529
commit e0795f8bf2

View File

@ -352,13 +352,10 @@ export const getEvents = () => async dispatch => {
const amount1 = parseFloat(eventObj.data.amount) / 1000000000000000000;
const subtext = "called reward";
const descriptions = [
"+" + amount1.toFixed(2) + " LPT"
"+" + amount1.toFixed(2) + " LPT" + (Math.floor(amount1) == 69 ? "... Nice!" : "")
]
const txt =
<Ticket icon={"💸"} subtext={subtext} descriptions={descriptions} />
if (Math.floor(amount1) == 69) {
txt += "... Nice!";
}
finalEventList.push({
eventType: "Reward",
eventDescription: txt,