Skip to content

Commit

Permalink
Fix Beaufort bug
Browse files Browse the repository at this point in the history
Fix bug preventing Beaufort categories from updating correctly.
  • Loading branch information
uajqq authored Jan 9, 2025
1 parent 6f441b3 commit d7c6f7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skins/Belchertown/js/belchertown.js.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -1881,8 +1881,8 @@ function update_current_wx(data) {

// Beaufort
#if $Extras.has_key("beaufort_category") and $Extras.beaufort_category == '1'
if (data.hasOwnProperty("beaufort")) {
jQuery(".beaufort").html(beaufort_cat(parseFloat(data["beaufort"])));
if (data.hasOwnProperty("beaufort_count")) {
jQuery(".beaufort").html(beaufort_cat(parseFloat(data["beaufort_count"])));
}
#end if

Expand Down

0 comments on commit d7c6f7a

Please sign in to comment.