minor bug fix

This commit is contained in:
sairaj mote 2022-11-19 21:10:57 +05:30
parent 81eb327967
commit 691f944988
3 changed files with 3 additions and 2 deletions

View File

@ -1107,7 +1107,7 @@
if (!document.querySelector(`#${pageId}`)?.classList.contains('inner-page')) return
try {
if (floDapps.user.id && (['sign_up', 'sign_in', 'loading', 'landing'].includes(pageId))) {
if (floDapps.user.id && (generalPages.includes(pageId))) {
history.replaceState(null, null, '#/dashboard_page');
pageId = 'dashboard_page'
}

View File

@ -284,6 +284,7 @@
Admin.unassignInternFromTask = function (floID, taskKey) {
if (_.internsAssigned[taskKey] && _.internsAssigned[taskKey].includes(floID)) {
_.internsAssigned[taskKey] = _.internsAssigned[taskKey].filter(id => id !== floID)
delete _.internRecord[floID].assignedTasks[taskKey]
return true
} else
return false

2
scripts/ribc.min.js vendored

File diff suppressed because one or more lines are too long