Skip to content

Commit b0fdabc

Browse files
committed
initialisation Error Fix
1 parent ec8c31c commit b0fdabc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

QuestTracker/1.0/QuestTracker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var QuestTracker = QuestTracker || (function () {
1313
if (state.CalenderData.CALENDARS) CALENDARS = state.CalenderData.CALENDARS;
1414
if (state.CalenderData.WEATHER) WEATHER = state.CalenderData.WEATHER;
1515
}
16-
Object.assign(CALENDARS, state.QUEST_TRACKER.calendar);
16+
if (state.QUEST_TRACKER?.calendar) Object.assign(CALENDARS, state.QUEST_TRACKER.calendar);
1717
return { CALENDARS, WEATHER };
1818
};
1919
const { CALENDARS, WEATHER } = getCalendarAndWeatherData();

0 commit comments

Comments
 (0)