Explorar el Código

fix: the pricing available popover display anyway

IllTamer hace 1 año
padre
commit
ccfac06645
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      web/src/components/ModelPricing.js

+ 2 - 2
web/src/components/ModelPricing.js

@@ -81,7 +81,7 @@ const ModelPricing = () => {
   }
   
   function renderAvailable(available) {
-    return (
+    return available ? (
       <Popover
         content={
           <div style={{ padding: 8 }}>{t('您的分组可以使用该模型')}</div>
@@ -98,7 +98,7 @@ const ModelPricing = () => {
       >
         <IconVerify style={{ color: 'green' }}  size="large" />
       </Popover>
-    )
+    ) : null;
   }
 
   const columns = [