Update +page.markdoc

fixed a bug of not showing remove button
This commit is contained in:
Aniruddha Roy
2025-04-20 22:53:20 +06:00
committed by GitHub
parent 37e49365d7
commit 4e920f0bea

View File

@@ -106,7 +106,7 @@ fun IdeasScreen(
Column(modifier = Modifier.padding(16.dp)) {
Text(text = idea.data["title"]?.toString() ?: "", fontWeight = FontWeight(700))
Text(text = idea.data["description"]?.toString() ?: "")
if (user?.id === idea.data["userId"])
if (user?.id == idea.data["userId"].toString())
Button(onClick = { onRemove(idea.id) }) {
Text("Remove")
}
@@ -216,4 +216,4 @@ private fun AppContent(accountService: AccountService, ideasService: IdeaService
}
}
}
```
```