Fixed ProgressBar crash bug

This commit is contained in:
niku 2023-06-10 22:23:29 +02:00
parent 9edaa2ff27
commit fd37a13cf5

View File

@ -33,7 +33,7 @@ export default function ProgressBar({
<View style={tw.style("h-3 w-full bg-slate-300 rounded-lg")}>
<View
style={tw.style("h-full bg-slate-700 rounded-lg", {
width: percentage,
width: `${(value / max) * 100}%`,
})}
/>
</View>