From 098c6d20f6ed84240c086b979b56afd598fdfea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <michael@minelli.me> Date: Thu, 18 Jan 2024 13:21:38 +0100 Subject: [PATCH] ExerciseHelper => Display: Show icon from identifier --- helpers/Dojo/ClientsSharedExerciseHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/Dojo/ClientsSharedExerciseHelper.ts b/helpers/Dojo/ClientsSharedExerciseHelper.ts index b592200..dd8b173 100644 --- a/helpers/Dojo/ClientsSharedExerciseHelper.ts +++ b/helpers/Dojo/ClientsSharedExerciseHelper.ts @@ -19,7 +19,7 @@ class ClientsSharedExerciseHelper { let finalLogInformations = ''; if ( exerciseResults.otherInformations ) { finalLogInformations = [ '', ...exerciseResults.otherInformations.map(information => { - const informationTitle = Style.INFO(`${ information.icon && information.icon != '' ? information.icon + ' ' : '' }${ information.name }: `); + const informationTitle = Style.INFO(`${ information.icon && information.icon != '' ? Icon[information.icon] + ' ' : '' }${ information.name }: `); const informationItems = typeof information.itemsOrInformations == 'string' ? information.itemsOrInformations : information.itemsOrInformations.map(item => `- ${ item }`).join('\n'); return `${ informationTitle }\n${ informationItems }`; -- GitLab