Skip to content

Commit ff71900

Browse files
fix: correct API key validation check
- Change appid to apikey to match config property - Fix error message to reference apikey instead of appid
1 parent 2cd2214 commit ff71900

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

MMM-OneCallWeather.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ Module.register("MMM-OneCallWeather", {
278278
getDom() {
279279
const wrapper = document.createElement("div");
280280

281-
if (this.config.appid === "") {
282-
wrapper.innerHTML = `Please set the correct openweather <i>appid</i> in the config for module: ${this.name}.`;
281+
if (this.config.apikey === "") {
282+
wrapper.innerHTML = `Please set the correct openweather <i>apikey</i> in the config for module: ${this.name}.`;
283283
wrapper.className = "dimmed light small";
284284
return wrapper;
285285
}

0 commit comments

Comments
 (0)