popovers: Fix missing string-to-integer conversion.

Found looking at browser exceptions.
This commit is contained in:
Tim Abbott 2020-02-25 15:12:41 -08:00
parent bb01c17ead
commit 8779fad281
1 changed files with 1 additions and 1 deletions

View File

@ -823,7 +823,7 @@ exports.register_click_handlers = function () {
});
$('body').on('click', '.bot-owner-name', function (e) {
const user_id = $(e.target).attr('data-bot-owner-id');
const user_id = parseInt($(e.target).attr('data-bot-owner-id'), 10);
const user = people.get_by_user_id(user_id);
exports.show_user_profile(user);
});