-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fixed bug in which user can submit quiz over the maximum limit allowed #1316
fix: fixed bug in which user can submit quiz over the maximum limit allowed #1316
Conversation
It was causing this error ✘ [ERROR] Cannot assign to "isLoggedIn" because it is a constant src/router.js:230:2: 230 │ isLoggedIn = false ╵ ~~~~~~~~~~ The symbol "isLoggedIn" was declared a constant here: src/router.js:222:7: 222 │ const { isLoggedIn } = sessionStore() ╵ ^
…owing user to submit quiz multiple times
…til page reload ListView throws error if initialized without emptyState which was causing the component to not reload when number of submissions was 0.
lms
|
Project |
lms
|
Branch Review |
fix/quiz-maximum-attempts
|
Run status |
|
Run duration | 00m 29s |
Commit |
|
Committer | Fahid Latheef A |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
0
|
|
0
|
|
1
|
Upgrade your plan to view test results. | |
View all changes introduced in this branch ↗︎ |
Fixes #1314 Case1 Fix maximum_attempts_bypass_method_1_after.mp4Case2 Fix maximum_attempts_bypass_method_2_after.mp4 |
@@ -219,7 +219,7 @@ let router = createRouter({ | |||
|
|||
router.beforeEach(async (to, from, next) => { | |||
const { userResource } = usersStore() | |||
const { isLoggedIn } = sessionStore() | |||
let { isLoggedIn } = sessionStore() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FahidLatheef why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yarn dev is causing below error
✘ [ERROR] Cannot assign to "isLoggedIn" because it is a constant
src/router.js:230:2:
230 │ isLoggedIn = false
╵ ~~~~~~~~~~
The symbol "isLoggedIn" was declared a constant here:
src/router.js:222:7:
222 │ const { isLoggedIn } = sessionStore()
╵ ^
🎉 This PR is included in version 2.23.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This PR includes
Closes #1314