diff --git a/src/pages/Documents/DrillingProgram.jsx b/src/pages/Documents/DrillingProgram.jsx index a0839ba..b05e212 100644 --- a/src/pages/Documents/DrillingProgram.jsx +++ b/src/pages/Documents/DrillingProgram.jsx @@ -26,7 +26,7 @@ export default function DrillingProgram({idWell}) { return } - if(files.every(fileInfo => fileInfo?.name.endsWith('.xlsx'))){ + if(files.every(fileInfo => fileInfo?.name.toLowerCase().endsWith('.xlsx'))){ setTooltip('Программа доступна для скачивания') selDownloadButtonEnabled(true) } @@ -40,6 +40,7 @@ export default function DrillingProgram({idWell}) {