diff --git a/public/locales/en.json b/public/locales/en.json index 0e1a42a..7088f68 100644 --- a/public/locales/en.json +++ b/public/locales/en.json @@ -622,6 +622,7 @@ "sent": "Sent", "received": "Received", "mined": "Mined", + "staking": "Staking", "name_a_record": "Updated name", "name_transferred": "Moved name", "name_sent": "Sent name", diff --git a/src/pages/dashboard/BlockValueCard.tsx b/src/pages/dashboard/BlockValueCard.tsx index 396fb99..e8bd432 100644 --- a/src/pages/dashboard/BlockValueCard.tsx +++ b/src/pages/dashboard/BlockValueCard.tsx @@ -19,7 +19,10 @@ const work = useSelector((s: RootState) => s.node.detailedWork); const hasNames = (work?.unpaid || 0) > 0; const soonestDecrease = Math.min(work ? work.decrease.blocks : 0, work ? work.decreasePenalty.blocks : 0); - const soonestDecreaseAmount = (work ? work.decrease.value : 0) + (work ? work.decreasePenalty.value : 0) + const soonestDecreaseAmount = work ? (work.decrease.blocks < work.decreasePenalty.blocks ? work.decrease.value + : (work.decrease.blocks > work.decreasePenalty.blocks ? work.decreasePenalty.value + : work.decrease.value + work.decreasePenalty.value ) ) + : 0; const resetBlock = Math.max(work ? work.decrease.reset : 0, work ? work.decreasePenalty.reset : 0); return