From fd37a13cf5a73e59a82044d6aba26bb0e46b8449 Mon Sep 17 00:00:00 2001
From: niku <nvdpoel01@gmail.com>
Date: Sat, 10 Jun 2023 22:23:29 +0200
Subject: [PATCH] Fixed ProgressBar crash bug

---
 components/shared/progress-bar/index.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/shared/progress-bar/index.tsx b/components/shared/progress-bar/index.tsx
index 59c0ece..e0995cb 100644
--- a/components/shared/progress-bar/index.tsx
+++ b/components/shared/progress-bar/index.tsx
@@ -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>