Skip to content
Snippets Groups Projects
Commit 77527305 authored by jojohoch's avatar jojohoch
Browse files

[player] Fix typo

parent 5e95d54d
No related branches found
No related tags found
No related merge requests found
Pipeline #49627 passed
......@@ -52,7 +52,7 @@ export class UnitComponent implements OnInit {
try {
LogService.debug('player: unitDefinition', message.unitDefinition);
const unitDefinition = JSON.parse(message.unitDefinition as string);
this.checkUnitdefinitionVersion(unitDefinition);
this.checkUnitDefinitionVersion(unitDefinition);
const unit: Unit = new Unit(unitDefinition);
this.pages = unit.pages;
this.playerConfig = message.playerConfig || {};
......@@ -81,7 +81,7 @@ export class UnitComponent implements OnInit {
}
}
private checkUnitdefinitionVersion(unitDefinition: Record<string, unknown>): void {
private checkUnitDefinitionVersion(unitDefinition: Record<string, unknown>): void {
if (!VersionManager.hasCompatibleVersion(unitDefinition)) {
if (VersionManager.isNewer(unitDefinition)) {
throw Error(this.translateService.instant('errorMessage.unitDefinitionIsNewer'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment