Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: Don't show the tooltip if the ipv4 addon is added (#20935)

Ivan Vasilov4efc350bf549
diff --git a/apps/studio/components/interfaces/Settings/Addons/Addons.tsx b/apps/studio/components/interfaces/Settings/Addons/Addons.tsx
index f3cc51134d6..af9fa0a64fb 100644
--- a/apps/studio/components/interfaces/Settings/Addons/Addons.tsx
+++ b/apps/studio/components/interfaces/Settings/Addons/Addons.tsx
@@ -463,7 +463,7 @@ const Addons = () => {
isBranch ||
!isProjectActive ||
projectUpdateDisabled ||
- !canUpdateIPv4
+ !(canUpdateIPv4 || ipv4)
}
>
Change IPv4 address
@@ -471,7 +471,8 @@ const Addons = () => {
</div>
</Tooltip.Trigger>
<Tooltip.Portal>
- {!canUpdateIPv4 && (
+ {/* Only show the tooltip if the user can't add the addon and ipv4 is not currently applied */}
+ {!(canUpdateIPv4 || ipv4) && (
<Tooltip.Content side="bottom">
<Tooltip.Arrow className="radix-tooltip-arrow" />
<div