Commit 1a5f2651 authored by qorri_di's avatar qorri_di Committed by ardyardyaaan

Screen Maintenance versi hardcode

parent b9c64a36
......@@ -97,8 +97,8 @@ class Login extends Component {
if (response.data) {
if (response.ok) {
if (response.data.status === 'success') {
// console.log(response.data.data
if (response.data.data.role_id === 185){
// console.log(response.data.data)
if (response.data.data.role_id === 185 && response.data.maintenance_mode === 'ACTIVE'){
this.props.history.push('/maintenance')
} else {
localStorage.setItem(Constant.TOKEN, response.data.data.token)
......
Markdown is supported
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