Skip to content

Commit

Permalink
fix: 시스템 뒤로가기 클릭 시 장부 업데이트가 되지 않는 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
jinukeu committed Jan 16, 2024
1 parent 24a2b96 commit 38fc742
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -90,6 +91,8 @@ fun LedgerDetailRoute(
viewModel.initData(ledger)
}

BackHandler(onBack = viewModel::popBackStackWithLedger)

LedgerDetailScreen(
uiState = uiState,
onClickEdit = viewModel::navigateLedgerEdit,
Expand Down

0 comments on commit 38fc742

Please sign in to comment.