diff --git a/src/app/services/whats-new.service.ts b/src/app/services/whats-new.service.ts index c4ee5df52..d937a62b3 100644 --- a/src/app/services/whats-new.service.ts +++ b/src/app/services/whats-new.service.ts @@ -201,7 +201,8 @@ export class WhatsNewService { * Returns modals with latest changes */ getLatestChanges(): ModalWindow[] { - const lastVersion = Object.keys(this.modals).at(-1); + const modalsLength = Object.keys(this.modals).length; + const lastVersion = Object.keys(this.modals)[modalsLength - 1]; return this.modals[lastVersion]; } }