diff --git a/frontend/public/locales/en/translation.json b/frontend/public/locales/en/translation.json index 1b90499381..571ac5e43a 100644 --- a/frontend/public/locales/en/translation.json +++ b/frontend/public/locales/en/translation.json @@ -10,7 +10,7 @@ "retention_success_message": "Congrats. The retention periods for {{name}} has been updated successfully.", "retention_error_message": "There was an issue in changing the retention period for {{name}}. Please try again or reach out to support@signoz.io", "retention_failed_message": "There was an issue in changing the retention period. Please try again or reach out to support@signoz.io", - "retention_comparison_error": "Total retention period for {{name}} can’t be lower than period after which data is moved to s3", + "retention_comparison_error": "Total retention period for {{name}} can’t be lower or equal to the period after which data is moved to s3.", "retention_null_value_error": "Retention Period for {{name}} is not set yet. Please set by choosing below", "retention_confirmation": "Are you sure you want to change the retention period?", "retention_confirmation_description": "This will change the amount of storage needed for saving metrics & traces." diff --git a/frontend/src/container/GeneralSettings/index.tsx b/frontend/src/container/GeneralSettings/index.tsx index b812ae9132..73d61550a9 100644 --- a/frontend/src/container/GeneralSettings/index.tsx +++ b/frontend/src/container/GeneralSettings/index.tsx @@ -205,13 +205,13 @@ function GeneralSettings(): JSX.Element { if (s3Enabled) { if ( (metricsTotalRetentionPeriod || metricsS3RetentionPeriod) && - Number(metricsTotalRetentionPeriod) < Number(metricsS3RetentionPeriod) + Number(metricsTotalRetentionPeriod) <= Number(metricsS3RetentionPeriod) ) { isDisabled = true; errorText = messages.compareError('metrics'); } else if ( (tracesTotalRetentionPeriod || tracesS3RetentionPeriod) && - Number(tracesTotalRetentionPeriod) < Number(tracesS3RetentionPeriod) + Number(tracesTotalRetentionPeriod) <= Number(tracesS3RetentionPeriod) ) { isDisabled = true; errorText = messages.compareError('traces');