Please keep long snippets like this inside a thread.
What is
R.id.pricesFragment,
doing here, it seems like you are using normal compose navigation, so this does not exactly look right. I don't think this would have something to do with if you are trying to navigate to a nested composable or not.