Skip to content

Commit

Permalink
Merge 0580b6f into e3a4328
Browse files Browse the repository at this point in the history
  • Loading branch information
monkbroc committed Feb 7, 2020
2 parents e3a4328 + 0580b6f commit 541d7c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class CloudCommand {
return api.claimDevice(deviceId).then(() => {
console.log('Successfully claimed device ' + deviceId);
}, (err) => {
if (err && typeof err === 'string' && err.indexOf('That belongs to someone else.') >= 0) {
if (err && typeof err[0] === 'string' && err[0].indexOf('That belongs to someone else.') >= 0) {
return prompt([{
type: 'confirm',
name: 'transfer',
Expand Down

0 comments on commit 541d7c3

Please sign in to comment.