From 03c24c6f14c02b0cf294119296a7042e6d62a3af Mon Sep 17 00:00:00 2001 From: Alex <33497058+bexsoft@users.noreply.github.com> Date: Wed, 16 Jun 2021 18:36:50 -0500 Subject: [PATCH] Fixed issue with comparison & prettier (#815) Co-authored-by: Benjamin Perez --- .../AddTierConfiguration.tsx | 49 +++++++++---------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/portal-ui/src/screens/Console/Configurations/TiersConfiguration/AddTierConfiguration.tsx b/portal-ui/src/screens/Console/Configurations/TiersConfiguration/AddTierConfiguration.tsx index 745153e11..5bbf600a3 100644 --- a/portal-ui/src/screens/Console/Configurations/TiersConfiguration/AddTierConfiguration.tsx +++ b/portal-ui/src/screens/Console/Configurations/TiersConfiguration/AddTierConfiguration.tsx @@ -294,31 +294,30 @@ const AddTierConfiguration = ({ setEndpoint(e.target.value); }} /> - {type === "s3" || - (type === "minio" && ( - - ) => { - setAccessKey(e.target.value); - }} - /> - ) => { - setSecretKey(e.target.value); - }} - /> - - ))} + {(type === "s3" || type === "minio") && ( + + ) => { + setAccessKey(e.target.value); + }} + /> + ) => { + setSecretKey(e.target.value); + }} + /> + + )} {type === "gcs" && (