This commit is contained in:
Seth Posner 2022-12-06 12:18:59 -08:00
commit deac397e46

View file

@ -356,7 +356,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
<Spacer /> <Spacer />
<MainDisplay resource={metal} color={color} style="margin-bottom: 0" sticky={false} <MainDisplay resource={metal} color={color} style="margin-bottom: 0" sticky={false}
productionDisplay={ productionDisplay={
<> jsx(()=><>
{{ {{
[-1]: <>{format(computedMetalGain.value)}/s</>, [-1]: <>{format(computedMetalGain.value)}/s</>,
0: undefined, 0: undefined,
@ -368,7 +368,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
? <> (Limited by {coal.coal.displayName})</> ? <> (Limited by {coal.coal.displayName})</>
: undefined : undefined
} }
</> </>)
} }
/> />
<Spacer /> <Spacer />
@ -381,11 +381,11 @@ const layer = createLayer(id, function (this: BaseLayer) {
<Spacer /> <Spacer />
<MainDisplay resource={ore} color={color} style="margin-bottom: 0" sticky={false} <MainDisplay resource={ore} color={color} style="margin-bottom: 0" sticky={false}
productionDisplay={ productionDisplay={
<>{{ jsx(()=><>{{
[-1]: <>{format(computedNetOreGain.value)}/s</>, [-1]: <>{format(computedNetOreGain.value)}/s</>,
0: undefined, 0: undefined,
1: <>+{format(computedNetOreGain.value)}/s</> 1: <>+{format(computedNetOreGain.value)}/s</>
}[Decimal.compare(computedNetOreGain.value, 0)]}</> }[Decimal.compare(computedNetOreGain.value, 0)]}</>)
} }
/> />
<Spacer /> <Spacer />