From 77f0fe5b80671ba93d832198b6ddff30b75987dc Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 17 Oct 2023 13:55:02 +0300 Subject: [PATCH] Fix event typing --- public/scripts/world-info.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index 51d3677f7..fd16fa7d7 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -2065,7 +2065,7 @@ jQuery(() => { }); $('#world_info_character_strategy').on('change', function () { - world_info_character_strategy = $(this).val(); + world_info_character_strategy = Number($(this).val()); saveSettings(); }); @@ -2080,7 +2080,7 @@ jQuery(() => { saveSettings(); }); - $('#world_button').on('click', async function () { + $('#world_button').on('click', async function (event) { const chid = $('#set_character_world').data('chid'); if (chid) {