From 2a151ee9b36729eb2489526c6e46d4a1df74850d Mon Sep 17 00:00:00 2001 From: AlexisG Date: Thu, 31 Oct 2024 11:55:05 +0100 Subject: [PATCH] feat(ScanResultCardPDF): Improve readability filename --- .../ScanResult/ScanResultCard/ScanResultCardPDF.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/ModelSteps/ScanResult/ScanResultCard/ScanResultCardPDF.jsx b/src/components/ModelSteps/ScanResult/ScanResultCard/ScanResultCardPDF.jsx index b322017d..569a36f5 100644 --- a/src/components/ModelSteps/ScanResult/ScanResultCard/ScanResultCardPDF.jsx +++ b/src/components/ModelSteps/ScanResult/ScanResultCard/ScanResultCardPDF.jsx @@ -10,12 +10,14 @@ import Typography from 'cozy-ui/transpiled/react/Typography' const ScanResultCardPDF = props => { const { currentFile, handleSelectedFile } = props + // Replace all "_" with a space in the filename for better readability + const fileName = currentFile.name.replaceAll('_', ' ') return (
- {currentFile.name} + {fileName}