summaryrefslogtreecommitdiffstats
path: root/webapp/client/client.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/client/client.jsx')
-rw-r--r--webapp/client/client.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx
index 4cd9c7c7c..439d41f78 100644
--- a/webapp/client/client.jsx
+++ b/webapp/client/client.jsx
@@ -749,7 +749,7 @@ export default class Client {
updateActive(userId, active, success, error) {
var data = {};
data.user_id = userId;
- data.active = '' + active;
+ data.active = String(active);
request.
post(`${this.getUsersRoute()}/update_active`).
@@ -1336,7 +1336,7 @@ export default class Client {
set(this.defaultHeaders).
type('application/json').
accept('application/json').
- send({channelId, command, suggest: '' + suggest}).
+ send({channelId, command, suggest: String(suggest)}).
end(this.handleResponse.bind(this, 'executeCommand', success, error));
this.track('api', 'api_integrations_used');