diff --git a/feature/received/src/main/java/com/susu/feature/received/ledgerdetail/LedgerDetailScreen.kt b/feature/received/src/main/java/com/susu/feature/received/ledgerdetail/LedgerDetailScreen.kt index 9c857ad2..b9b386f9 100644 --- a/feature/received/src/main/java/com/susu/feature/received/ledgerdetail/LedgerDetailScreen.kt +++ b/feature/received/src/main/java/com/susu/feature/received/ledgerdetail/LedgerDetailScreen.kt @@ -1,5 +1,6 @@ package com.susu.feature.received.ledgerdetail +import androidx.activity.compose.BackHandler import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box @@ -90,6 +91,8 @@ fun LedgerDetailRoute( viewModel.initData(ledger) } + BackHandler(onBack = viewModel::popBackStackWithLedger) + LedgerDetailScreen( uiState = uiState, onClickEdit = viewModel::navigateLedgerEdit,