From ec82c5baf6212df4c566dd6f09574a0f5e016e1f Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 11 Dec 2020 02:31:58 +0100 Subject: [PATCH] fix - nombre astral inconnu --- module/rdd-calendrier.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/module/rdd-calendrier.js b/module/rdd-calendrier.js index a371edf8..95e25bda 100644 --- a/module/rdd-calendrier.js +++ b/module/rdd-calendrier.js @@ -95,8 +95,12 @@ export class RdDCalendrier extends Application { /* -------------------------------------------- */ getCurrentNombreAstral() { - let index = this.getCurrentDayIndex(); - return this.listeNombreAstral[index].nombreAstral; + if (this.listeNombreAstral) + { + let index = this.getCurrentDayIndex(); + return this.listeNombreAstral[index].nombreAstral; + } + return '?'; } /* -------------------------------------------- */