From 4ad91d861f610ae96f7d02abf7d1f2e2f1c7f48c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Wed, 1 Sep 2021 15:55:23 +0500 Subject: [PATCH] design --- src/pages/Documents/DrillingProgram.jsx | 3 ++- src/pages/Well.jsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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}) {