feat: show RPS message only if user is on trail and trail is not converted to sub (#5860)

* feat: show rps message only if user is on trail and trail is not converted to sub

* feat: show rps message only if user is on trail and trail is not converted to sub
This commit is contained in:
Yunus M 2024-09-06 11:20:47 +05:30 committed by GitHub
parent 266894b0f8
commit 23704b00ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 2 deletions

View File

@ -69,7 +69,12 @@ function ServiceMetricTable({
const [RPS, setRPS] = useState(0);
useEffect(() => {
if (!isFetching && licenseData?.payload?.onTrial && isCloudUserVal) {
if (
!isFetching &&
licenseData?.payload?.onTrial &&
!licenseData?.payload?.trialConvertedToSubscription &&
isCloudUserVal
) {
if (services.length > 0) {
const rps = getTotalRPS(services);
setRPS(rps);

View File

@ -26,7 +26,12 @@ function ServiceTraceTable({
const tableColumns = useMemo(() => getColumns(search, false), [search]);
useEffect(() => {
if (!isFetching && licenseData?.payload?.onTrial && isCloudUserVal) {
if (
!isFetching &&
licenseData?.payload?.onTrial &&
!licenseData?.payload?.trialConvertedToSubscription &&
isCloudUserVal
) {
if (services.length > 0) {
const rps = getTotalRPS(services);
setRPS(rps);