chore: adjust displayed Instrument payout with suffix notation
This commit is contained in:
parent
ffa677812e
commit
03cb459114
|
@ -17,8 +17,8 @@
|
||||||
class="absolute top-0 left-0 right-0 w-full text-center text-sm h-5"
|
class="absolute top-0 left-0 right-0 w-full text-center text-sm h-5"
|
||||||
:class="`text-${$store.getters.activeTab.darkColor}`"
|
:class="`text-${$store.getters.activeTab.darkColor}`"
|
||||||
>
|
>
|
||||||
{{ reward }} <span class="fas fa-hourglass-half" /> every
|
{{ rewardText }} <span class="fas fa-hourglass-half" /> /
|
||||||
{{ interval }} seconds
|
{{ interval }} sec
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
@ -92,6 +92,11 @@ export default {
|
||||||
reward() {
|
reward() {
|
||||||
return this.process.baseReward * (1 + this.process.workerLevel)
|
return this.process.baseReward * (1 + this.process.workerLevel)
|
||||||
},
|
},
|
||||||
|
rewardText() {
|
||||||
|
return this.$store.getters.suffixedDecimalText(
|
||||||
|
this.process.baseReward * (1 + this.process.workerLevel)
|
||||||
|
)
|
||||||
|
},
|
||||||
interval() {
|
interval() {
|
||||||
return this.process.completionRequired / 10 /* in seconds */
|
return this.process.completionRequired / 10 /* in seconds */
|
||||||
},
|
},
|
||||||
|
|
Reference in New Issue