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
Functional Programming
Diskuy-Backend
Commits
9f6d1314
Commit
9f6d1314
authored
Jan 13, 2021
by
FadhilP
Browse files
minor fix
parent
49b4e31f
Changes
3
Hide whitespace changes
Inline
Side-by-side
diskuy/src/RegisterForm.js
View file @
9f6d1314
...
...
@@ -30,7 +30,6 @@ export default function RegisterForm(props){
try
{
AuthService
.
register
(
username
,
email
,
password
)
if
(
!
loggedIn
)
throw
TypeError
(
'
Not valid
'
)
setSuccesful
(
true
)
props
.
history
.
push
(
'
/
'
)
window
.
location
.
reload
()
...
...
diskuy/src/helpers/time-util.js
View file @
9f6d1314
...
...
@@ -6,7 +6,6 @@ function tConvert (time) {
time
=
time
.
toString
().
match
(
/^
([
01
]\d
|2
[
0-3
])(
:
)([
0-5
]\d)(
:
[
0-5
]\d)?
$/
)
||
[
time
];
if
(
time
.
length
>
1
)
{
// If time format correct
console
.
log
(
time
)
time
=
time
.
slice
(
1
,
4
);
// Remove full string match value
time
[
5
]
=
+
time
[
0
]
<
12
?
'
AM
'
:
'
PM
'
;
// Set AM/PM
time
[
0
]
=
+
time
[
0
]
%
12
||
12
;
// Adjust hours
...
...
diskuy/src/services/auth.service.js
View file @
9f6d1314
...
...
@@ -19,7 +19,7 @@ class AuthService {
password
}
})
this
.
login
(
email
,
password
)
await
this
.
login
(
email
,
password
)
return
response
}
...
...
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