@@ -201,9 +201,11 @@ export class WebsocketService {
201201 const counter = data . timeout || 80 ;
202202
203203 const preview = data . credentialPreview as CredentialPreview ;
204+ console . log ( 'Credential Preview:' , preview ) ;
204205 const subjectLabel = this . translate . instant ( 'confirmation.holder' ) ;
205206 const organizationLabel = this . translate . instant ( 'confirmation.organization' ) ;
206207 const powersLabel = this . translate . instant ( 'confirmation.powers' ) ;
208+ console . log ( 'Powers Label:' , powersLabel ) ;
207209 const expirationLabel = this . translate . instant ( 'confirmation.expiration' ) ;
208210
209211
@@ -290,9 +292,11 @@ export class WebsocketService {
290292 }
291293
292294 private mapPowersToHumanReadable ( powers : Power [ ] ) : string {
293- if ( ! Array . isArray ( powers ) || powers . length === 0 ) return '' ;
295+ if ( powers . length === 0 ) return '' ;
294296
295- const unknown = this . translate . instant ( 'common.unknown' ) || 'Desconocido' ;
297+ console . log ( 'Mapping powers to human readable:' , powers ) ;
298+
299+ const unknown = this . translate . instant ( 'confirmation.unknown' ) ;
296300
297301 const lines = powers
298302 . map ( ( p ) => {
@@ -301,13 +305,17 @@ export class WebsocketService {
301305
302306 const functionLabelRaw =
303307 this . getSafeTranslation ( `vc-fields.power.${ fnKey } ` , p ?. function , unknown ) ;
304-
308+ console . log ( 'Function Label Raw:' , functionLabelRaw ) ;
305309 const actionLabelsRaw = actionKeys
306310 . map ( ( a ) => this . getSafeTranslation ( `vc-fields.power.${ a } ` , a , unknown ) )
307311 . filter ( ( x ) => x && x !== unknown ) ;
308312
313+ console . log ( 'Action Labels Raw:' , actionLabelsRaw ) ;
314+
309315 const functionLabel = this . escapeHtml ( functionLabelRaw ) ;
310316 const actionLabels = this . escapeHtml ( actionLabelsRaw . join ( ', ' ) ) ;
317+ console . log ( 'Function Label:' , functionLabel ) ;
318+ console . log ( 'Action Labels:' , actionLabels ) ;
311319
312320 if ( ! functionLabel || ! actionLabels ) return '' ;
313321
0 commit comments