mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 18:55:09 +02:00
Fix joke which broke everything
This commit is contained in:
parent
ae2c5d9529
commit
e0795f8bf2
@ -352,13 +352,10 @@ export const getEvents = () => async dispatch => {
|
|||||||
const amount1 = parseFloat(eventObj.data.amount) / 1000000000000000000;
|
const amount1 = parseFloat(eventObj.data.amount) / 1000000000000000000;
|
||||||
const subtext = "called reward";
|
const subtext = "called reward";
|
||||||
const descriptions = [
|
const descriptions = [
|
||||||
"+" + amount1.toFixed(2) + " LPT"
|
"+" + amount1.toFixed(2) + " LPT" + (Math.floor(amount1) == 69 ? "... Nice!" : "")
|
||||||
]
|
]
|
||||||
const txt =
|
const txt =
|
||||||
<Ticket icon={"💸"} subtext={subtext} descriptions={descriptions} />
|
<Ticket icon={"💸"} subtext={subtext} descriptions={descriptions} />
|
||||||
if (Math.floor(amount1) == 69) {
|
|
||||||
txt += "... Nice!";
|
|
||||||
}
|
|
||||||
finalEventList.push({
|
finalEventList.push({
|
||||||
eventType: "Reward",
|
eventType: "Reward",
|
||||||
eventDescription: txt,
|
eventDescription: txt,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user