Commit 57075b90 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg

check if client is undefined and not empty string

parent 34df8428
Pipeline #5357 passed with stages
in 4 minutes and 21 seconds
......@@ -76,8 +76,10 @@ class Component extends PureComponent {
}
let clientId = ''
if (this.props.serverConfig && this.props.serverConfig.client_id) {
if (this.props.serverConfig && typeof this.props.serverConfig.client_id !== 'undefined') {
clientId = this.props.serverConfig.client_id
this.state.client_id = this.props.serverConfig.client_id
console.error("Setting clientid to serverconfig", clientId)
} else if (this.state && this.state.client_id) {
clientId = this.state.client_id
}
......
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