diff --git a/feature/mypage/src/main/java/com/teamwiney/mypage/MyPageViewModel.kt b/feature/mypage/src/main/java/com/teamwiney/mypage/MyPageViewModel.kt index 54878491..47d89313 100644 --- a/feature/mypage/src/main/java/com/teamwiney/mypage/MyPageViewModel.kt +++ b/feature/mypage/src/main/java/com/teamwiney/mypage/MyPageViewModel.kt @@ -4,7 +4,9 @@ import androidx.lifecycle.viewModelScope import androidx.navigation.navOptions import com.teamwiney.core.common.base.BaseViewModel import com.teamwiney.core.common.navigation.HomeDestinations +import com.teamwiney.core.common.util.Constants.ACCESS_TOKEN import com.teamwiney.core.common.util.Constants.DEVICE_ID +import com.teamwiney.core.common.util.Constants.REFRESH_TOKEN import com.teamwiney.core.common.util.Constants.USER_ID import com.teamwiney.data.network.adapter.ApiResult import com.teamwiney.data.repository.auth.AuthRepository @@ -191,6 +193,8 @@ class MyPageViewModel @Inject constructor( updateState(currentState.copy(isLoading = false)) when (it) { is ApiResult.Success -> { + dataStoreRepository.deleteStringValue(ACCESS_TOKEN) + dataStoreRepository.deleteStringValue(REFRESH_TOKEN) postEffect( MyPageContract.Effect.ShowBottomSheet( MyPageContract.BottomSheet.WithdrawalComplete diff --git a/feature/mypage/src/main/java/com/teamwiney/mypage/account/MyPageWithdrawalConfirmScreen.kt b/feature/mypage/src/main/java/com/teamwiney/mypage/account/MyPageWithdrawalConfirmScreen.kt index 2a27ec96..b0f24dfd 100644 --- a/feature/mypage/src/main/java/com/teamwiney/mypage/account/MyPageWithdrawalConfirmScreen.kt +++ b/feature/mypage/src/main/java/com/teamwiney/mypage/account/MyPageWithdrawalConfirmScreen.kt @@ -41,8 +41,6 @@ fun MyPageWithdrawalConfirmScreen( val activity = (LocalContext.current as? Activity) LaunchedEffect(true) { - viewModel.updateWithdrawalReason("이유를 선택해주세요.") - effectFlow.collectLatest { effect -> when (effect) { is MyPageContract.Effect.NavigateTo -> {