Skip to content

Commit

Permalink
Event warning message fix
Browse files Browse the repository at this point in the history
  • Loading branch information
serkanyazicioglu committed May 9, 2024
1 parent 253f7a0 commit 459de0a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -627,9 +627,11 @@ function Core:CreateUpcomingEvents()
return;
end

if (not isEventProcessCompleted or isNewEventBeingCreated) then
Core:AppendMessage("Addon is busy right now! Please wait for a while...");
return;
if (ns.UPCOMING_EVENTS.totalEvents > 0) then
if (not isEventProcessCompleted or isNewEventBeingCreated) then
Core:AppendMessage("Addon is busy right now! Please wait for a while...");
return;
end
end

Core:Debug("Core:CreateUpcomingEvents");
Expand All @@ -641,7 +643,7 @@ function Core:CreateUpcomingEvents()

local hasAnyData = false;

if (isInGuild and ns.UPCOMING_EVENTS.totalEvents > 0) then
if (ns.UPCOMING_EVENTS.totalEvents > 0) then
for i = 1, ns.UPCOMING_EVENTS.totalEvents do
local upcomingEvent = ns.UPCOMING_EVENTS.events[i];

Expand Down

0 comments on commit 459de0a

Please sign in to comment.