FIX: invoice description decode
This commit is contained in:
		
							parent
							
								
									0f6a4d8cba
								
							
						
					
					
						commit
						9d8466b595
					
				@ -243,7 +243,11 @@ export class User {
 | 
				
			|||||||
      invoice.description = '';
 | 
					      invoice.description = '';
 | 
				
			||||||
      for (let tag of decoded.tags) {
 | 
					      for (let tag of decoded.tags) {
 | 
				
			||||||
        if (tag.tagName === 'description') {
 | 
					        if (tag.tagName === 'description') {
 | 
				
			||||||
 | 
					          try {
 | 
				
			||||||
            invoice.description += decodeURIComponent(tag.data);
 | 
					            invoice.description += decodeURIComponent(tag.data);
 | 
				
			||||||
 | 
					          } catch (_) {
 | 
				
			||||||
 | 
					            invoice.description += tag.data;
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (tag.tagName === 'payment_hash') {
 | 
					        if (tag.tagName === 'payment_hash') {
 | 
				
			||||||
          invoice.payment_hash = tag.data;
 | 
					          invoice.payment_hash = tag.data;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user