diff --git a/studio/components/interfaces/Billing/AddOns/PITRDurationSelection.tsx b/studio/components/interfaces/Billing/AddOns/PITRDurationSelection.tsx index 5f35d71f5f7..cf97a169668 100644 --- a/studio/components/interfaces/Billing/AddOns/PITRDurationSelection.tsx +++ b/studio/components/interfaces/Billing/AddOns/PITRDurationSelection.tsx @@ -29,7 +29,7 @@ const PITRDurationSelection: FC = ({ const addonUpdateDisabled = useFlag('disableProjectCreationAndUpdate') // Only projects of version greater than supabase-postgrest-14.1.0.44 can use PITR - const canUsePITR = getSemanticVersion(ui.selectedProject?.kpsVersion ?? '') > 141044 + const canUsePITR = getSemanticVersion(ui.selectedProject?.dbVersion ?? '') > 141044 return (
diff --git a/studio/types/base.ts b/studio/types/base.ts index 002e303ee2c..c86d136afe7 100644 --- a/studio/types/base.ts +++ b/studio/types/base.ts @@ -25,6 +25,7 @@ export interface ProjectBase { export interface Project extends ProjectBase { // available after projects.fetchDetail connectionString?: string + dbVersion?: string kpsVersion?: string restUrl?: string // store subscription tier products.metadata.supabase_prod_id