Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
PPL Sosial
tbcare
tbcare-mobile
Commits
a8a8ac45
Commit
a8a8ac45
authored
Jun 03, 2021
by
Zafir Rasyidi Taufik
Browse files
[CHORES]Fix undefined response error if token is already set on startup
parent
02635f38
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/App/index.tsx
View file @
a8a8ac45
...
...
@@ -177,7 +177,7 @@ const App = () => {
if
(
token
)
{
const
getUser
=
async
()
=>
{
const
response
=
await
mainService
.
me
()
if
(
response
.
status
===
200
)
{
if
(
response
?
.
status
===
200
)
{
// Token is valid
setUser
(
response
.
data
)
navigatorRef
.
current
?.
reset
({
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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