From 50ced36bb9a38abb49c92569834b3cfbeff04847 Mon Sep 17 00:00:00 2001 From: Arumugam J Date: Sun, 18 Aug 2024 15:17:43 -0400 Subject: [PATCH] Betterer code --- composeApp/src/commonMain/kotlin/ui/JobsScreen.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composeApp/src/commonMain/kotlin/ui/JobsScreen.kt b/composeApp/src/commonMain/kotlin/ui/JobsScreen.kt index 18de642..d58e9eb 100644 --- a/composeApp/src/commonMain/kotlin/ui/JobsScreen.kt +++ b/composeApp/src/commonMain/kotlin/ui/JobsScreen.kt @@ -127,8 +127,8 @@ object JobsScreen : Screen { when (job.status) { Starting -> LinearProgressIndicator(modifier = progressPadding) InProgress -> LinearProgressIndicator( - progress = job.progress / 100.0f, - modifier = progressPadding + progress = { job.progress / 100.0f }, + modifier = progressPadding, ) Completed -> Text(