Commit b963f02f authored by raca's avatar raca

feat: update 负数秒

parent 080cf703
......@@ -64,9 +64,9 @@ const MainHeader = () => {
<View className={styles.center}>
用时
<Image style={{ width: 14, height: 15 }} src={require('../assets/down-arrow.png')} mode="widthFix" />
{item.nextStepTime}秒,就能获得
{item.nextStepTime <= 0 ? 0.1 : item.nextStepTime}秒,就能获得
<Text style={{ color: '#FFCF83', fontWeight: 600 }}>
{Number(formatNextStep(item).t || 0) <= 0 ? 0.1 : formatNextStep(item).t}
{formatNextStep(item).t}
</Text>
</View>
</View>
......
......@@ -49,7 +49,7 @@ const MessageRenderer = ({ step, level, gear, upGear }) => {
const { detail } = detailIndexMap[targetStep]
if (detail.nextStepTime < 0) {
if (detail.nextStepTime <= 0) {
detail.nextStepTime = 0.1
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment