mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: make numbers in chart to locale string (#7084)
To get correct formatting to number, in our codebase we call toLocaleString(). Added it also to this component. From  To 
This commit is contained in:
		
							parent
							
								
									17e340ab40
								
							
						
					
					
						commit
						3768331e9a
					
				| @ -112,19 +112,23 @@ export const MetricsSummaryTooltip: VFC<{ tooltip: TooltipState | null }> = ({ | ||||
|                     /> | ||||
|                     <InfoLine | ||||
|                         iconChar={'▣ '} | ||||
|                         title={`Total requests: ${ | ||||
|                         title={`Total requests: ${( | ||||
|                             point.value.totalRequests ?? 0 | ||||
|                         }`}
 | ||||
|                         ).toLocaleString()}`}
 | ||||
|                         color={'info'} | ||||
|                     /> | ||||
|                     <InfoLine | ||||
|                         iconChar={'▲ '} | ||||
|                         title={`Exposed: ${point.value.totalYes ?? 0}`} | ||||
|                         title={`Exposed: ${( | ||||
|                             point.value.totalYes ?? 0 | ||||
|                         ).toLocaleString()}`}
 | ||||
|                         color={'success'} | ||||
|                     /> | ||||
|                     <InfoLine | ||||
|                         iconChar={'▼ '} | ||||
|                         title={`Not exposed: ${point.value.totalNo ?? 0}`} | ||||
|                         title={`Not exposed: ${( | ||||
|                             point.value.totalNo ?? 0 | ||||
|                         ).toLocaleString()}`}
 | ||||
|                         color={'error'} | ||||
|                     /> | ||||
|                     <ConditionallyRender | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user