알림설정 화면이 닫힐 때 creatorId가 0으로 설정되면서 팔로잉과 알림설정이 되지 않는 버그 수정
This commit is contained in:
		@@ -14,14 +14,7 @@ struct SeriesDetailView: View {
 | 
			
		||||
    
 | 
			
		||||
    let seriesId: Int
 | 
			
		||||
    
 | 
			
		||||
    @State private var isShowFollowNotifyDialog: Bool = false {
 | 
			
		||||
        didSet {
 | 
			
		||||
            if !isShowFollowNotifyDialog {
 | 
			
		||||
                creatorId = 0
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    @State private var isShowFollowNotifyDialog: Bool = false
 | 
			
		||||
    @State private var creatorId: Int = 0
 | 
			
		||||
    
 | 
			
		||||
    var body: some View {
 | 
			
		||||
@@ -206,12 +199,15 @@ struct SeriesDetailView: View {
 | 
			
		||||
                            isShowing: $isShowFollowNotifyDialog,
 | 
			
		||||
                            onClickNotifyAll: {
 | 
			
		||||
                                viewModel.follow(creatorId, follow: true, notify: true)
 | 
			
		||||
                                creatorId = 0
 | 
			
		||||
                            },
 | 
			
		||||
                            onClickNotifyNone: {
 | 
			
		||||
                                viewModel.follow(creatorId, follow: true, notify: false)
 | 
			
		||||
                                creatorId = 0
 | 
			
		||||
                            },
 | 
			
		||||
                            onClickUnFollow: {
 | 
			
		||||
                                viewModel.follow(creatorId, follow: false, notify: false)
 | 
			
		||||
                                creatorId = 0
 | 
			
		||||
                            }
 | 
			
		||||
                        )
 | 
			
		||||
                    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user