= ({
{overLimit !== undefined
? intl.formatMessage(messages.notenoughseasonrequests)
: intl.formatMessage(messages.requestsremaining, {
- remaining: Math.max(0, remaining ?? quota?.remaining ?? 0),
+ remaining: remaining ?? quota?.remaining ?? 0,
type: intl.formatMessage(
mediaType === 'movie' ? messages.movie : messages.season
),
diff --git a/src/components/UserProfile/index.tsx b/src/components/UserProfile/index.tsx
index 6343c5fae2..9264553300 100644
--- a/src/components/UserProfile/index.tsx
+++ b/src/components/UserProfile/index.tsx
@@ -134,13 +134,10 @@ const UserProfile: React.FC = () => {
{quota.movie.limit ? (
<>
{
limit: (
{intl.formatMessage(messages.limit, {
- remaining: Math.max(
- 0,
- quota.movie.remaining ?? 0
- ),
+ remaining: quota.movie.remaining,
limit: quota.movie.limit,
})}
@@ -196,13 +190,10 @@ const UserProfile: React.FC = () => {
{quota.tv.limit ? (
<>
{
limit: (
{intl.formatMessage(messages.limit, {
- remaining: Math.max(0, quota.tv.remaining ?? 0),
+ remaining: quota.tv.remaining,
limit: quota.tv.limit,
})}