From 966b66a32ddf61520d99ddd010f02dd7e116edff Mon Sep 17 00:00:00 2001 From: Torresmorah Date: Fri, 20 Jan 2023 15:15:39 -0600 Subject: [PATCH] feat(webapp): show when non-compliant BP provides an invalid url --- .../src/components/NonCompliantCard/index.js | 20 +++++++++++-------- webapp/src/language/en.json | 3 ++- webapp/src/language/es.json | 3 ++- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/webapp/src/components/NonCompliantCard/index.js b/webapp/src/components/NonCompliantCard/index.js index a18126ee..2a5d17ec 100644 --- a/webapp/src/components/NonCompliantCard/index.js +++ b/webapp/src/components/NonCompliantCard/index.js @@ -32,19 +32,23 @@ const NonCompliantCard = ({ producer, stats }) => { return ( <>
- {producer.owner} + + {producer.owner} + {t('noInfo')}
{t('info')} - {isUrlValid(producer.url) && ( -
- - {t('website')}: - +
+ + {t('website')}: + + {isUrlValid(producer.url) ? ( -
- )} + ) : ( + {t('invalidUrl')} + )} +