Skip to content

Commit f8fca96

Browse files
committed
using .toString to compare string
1 parent b6ea8e0 commit f8fca96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/Ros.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ ROSLIB.Ros.prototype.decodeTypeDefs = function(type_defs) {
340340
// lookup the name
341341
var sub_type = false;
342342
for (var j = 0; j < hint_defs.length; j++) {
343-
if (hint_defs[j].type === fieldType) {
343+
if (hint_defs[j].type.toString() === fieldType.toString()) {
344344
sub_type = hint_defs[j];
345345
break;
346346
}

0 commit comments

Comments
 (0)