Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
splitting condition to make sure not joinig raids might work
Browse files Browse the repository at this point in the history
  • Loading branch information
Idrinth committed Oct 11, 2016
1 parent a13c426 commit c1958f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mods/tier.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ idrinth.tier = {
if ( data ) {
idrinth.tier.list = data;
for (var key in data) {
if ( data[key].name && idrinth.settings.get ( "bannedRaids#" + data[key].name ) === undefined ) {
idrinth.settings.change ( "bannedRaids#" + data[key].name, false );
if ( data[key].name ) {
if ( idrinth.settings.get ( "bannedRaids#" + data[key].name ) === undefined ) {
idrinth.settings.change ( "bannedRaids#" + data[key].name, false );
}
document.getElementById ( 'idrinth-raid-may-join-list' ).appendChild ( idrinth.ui.buildElement ( {
name: 'bannedRaids#' + data[key].name,
rType: '#input',
Expand Down

0 comments on commit c1958f4

Please sign in to comment.