I have a problem with my Fragment and ViewModel. This is the code in my Fragment:
private val sharedViewModel: SharedViewModel by activityViewModels()