From 8dec14efc183ca0b0e045efa73e34a5e099e92e8 Mon Sep 17 00:00:00 2001 From: OkelloSam Date: Thu, 15 Aug 2024 20:59:50 +0300 Subject: [PATCH] fix: display correct job location on job card This commit fixes an issue where the job location was not being displayed correctly on the job card. The location is now retrieved from the associated business object instead of the job object itself. --- .../kazihub/presentation/common/components/JobCard.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/samuelokello/kazihub/presentation/common/components/JobCard.kt b/app/src/main/java/com/samuelokello/kazihub/presentation/common/components/JobCard.kt index a47f4a1..8be2162 100644 --- a/app/src/main/java/com/samuelokello/kazihub/presentation/common/components/JobCard.kt +++ b/app/src/main/java/com/samuelokello/kazihub/presentation/common/components/JobCard.kt @@ -73,7 +73,7 @@ fun JobCard( Row { Text(text = "ksh ${job.budget?: "Not Specified"}") Spacer(modifier = Modifier.width(8.dp)) - Text(text = "Location : ${job.location?: "N/A"} ") + Text(text = "Location : ${job.business?.location ?: "N/A"} ") } } }