Fakultas Ilmu Komputer UI

Commit 9f6d1314 authored by FadhilP's avatar FadhilP
Browse files

minor fix

parent 49b4e31f
......@@ -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()
......
......@@ -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
......
......@@ -19,7 +19,7 @@ class AuthService {
password
}
})
this.login(email, password)
await this.login(email, password)
return response
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment