diff --git a/app/src/main/java/com/wap/wapp/navigation/WappNavHost.kt b/app/src/main/java/com/wap/wapp/navigation/WappNavHost.kt index e1a5c3f6..6f0f88b3 100644 --- a/app/src/main/java/com/wap/wapp/navigation/WappNavHost.kt +++ b/app/src/main/java/com/wap/wapp/navigation/WappNavHost.kt @@ -111,16 +111,16 @@ fun WappNavHost( navigateToSignIn = { navController.navigateToSignIn(navOptions { popUpTo(profileNavigationRoute) }) }, + navigateToSurveyDetail = { surveyId -> + navController.navigateToSurveyDetail( + surveyId, + navOptions { popUpTo(profileNavigationRoute) }, + ) + }, ) attendanceScreen( navigateToSignIn = { - navController.navigateToSignIn( - navOptions { - popUpTo( - attendanceNavigationRoute, - ) - }, - ) + navController.navigateToSignIn(navOptions { popUpTo(attendanceNavigationRoute) }) }, navigateToAttendanceManagement = navController::navigateToAttendanceManagement, )