Skip to content

Commit

Permalink
Make the fix in 6f3afe0 even simpler (#105, #106)
Browse files Browse the repository at this point in the history
We already converted the object to a string, so we don't need to do it
again.
  • Loading branch information
dstillman committed Jul 9, 2019
1 parent 6f3afe0 commit 0c0bc8e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/webSession.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,7 @@ WebSession.prototype.selectDone = function () {
// Make sure items are actually available
var haveItems = false;
for (let i in selectedItems) {
// Some translators return object with 'title' and 'checked' properties
let title = selectedItems[i].title !== undefined ? selectedItems[i].title : selectedItems[i];
if (this.items[i] === undefined || this.items[i] !== title) {
if (this.items[i] === undefined || this.items[i] !== selectedItems[i]) {
this.selectCallback([]);
this.ctx.throw(409, "Items specified do not match items available");
}
Expand Down

0 comments on commit 0c0bc8e

Please sign in to comment.