Skip to content

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

fix: smol nit (#27484)

angelicod038b2675190
diff --git a/apps/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx b/apps/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx
index fc8fddea99a..77639de8e07 100644
--- a/apps/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx
@@ -58,6 +58,11 @@ const ProjectPausedState = ({ product }: ProjectPausedStateProps) => {
}
)
+ const finalDaysRemainingBeforeRestoreDisabled =
+ pauseStatus?.remaining_days_till_restore_disabled ??
+ pauseStatus?.max_days_till_restore_disabled ??
+ 0
+
const isFreePlan = subscription?.plan?.id === 'free'
const isRestoreDisabled = enforceNinetyDayUnpauseExpiry && isSuccess && !pauseStatus.can_restore
const latestBackup = pauseStatus?.latest_downloadable_backup_id
@@ -213,10 +218,8 @@ const ProjectPausedState = ({ product }: ProjectPausedStateProps) => {
<Alert_Shadcn_>
<AlertTitle_Shadcn_>
Project can be restored through the dashboard within the next{' '}
- {pauseStatus?.remaining_days_till_restore_disabled} day
- {(pauseStatus?.remaining_days_till_restore_disabled ?? 0) > 1
- ? 's'
- : ''}
+ {finalDaysRemainingBeforeRestoreDisabled} day
+ {finalDaysRemainingBeforeRestoreDisabled > 1 ? 's' : ''}
</AlertTitle_Shadcn_>
<AlertDescription_Shadcn_>
Free projects cannot be restored through the dashboard if they are