Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
2021
Kelas D
PT Gizi Sehat - Dietela
Dietela Mobile
Commits
5f8fdee2
Commit
5f8fdee2
authored
Jun 23, 2021
by
wulanmantiri
Browse files
[REFACTOR] Fix login bug by handling expired or nonexisting cart for user
parent
3d046098
Pipeline
#82993
passed with stages
in 9 minutes and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/app/schema.ts
View file @
5f8fdee2
...
...
@@ -15,6 +15,12 @@ export const getNavigation = (
)
=>
{
if
(
isAuthenticated
)
{
if
(
user
.
role
===
UserRole
.
CLIENT
)
{
if
(
!
user
.
cart_id
)
{
return
{
initialRoute
:
ROUTES
.
allAccessQuestionnaire
,
navigation
:
unpaidClientNavigation
,
};
}
if
([
TransactionStatus
.
UNPAID
,
null
].
includes
(
user
.
transaction_status
))
{
return
{
initialRoute
:
ROUTES
.
checkout
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment