diff --git a/src/settings/components/general-settings/user-quota.tsx b/src/settings/components/general-settings/user-quota.tsx index 7d44cc026..fd5743365 100644 --- a/src/settings/components/general-settings/user-quota.tsx +++ b/src/settings/components/general-settings/user-quota.tsx @@ -30,6 +30,13 @@ const UserQuota: FC = ({ mobileView }) => { return -1; }, [settings?.attrs?.zimbraMailQuota, used]); + const filledQuota = useMemo(() => { + if (quota === -1 || quota >= 100) { + return 100; + } + return quota; + }, [quota]); + const description = useMemo(() => { switch (true) { case !quota || quota < 0: @@ -60,7 +67,7 @@ const UserQuota: FC = ({ mobileView }) => { return mobileView ? ( - 0 ? quota : 0} fillBackground={fillBackground} /> + ) : ( @@ -78,7 +85,7 @@ const UserQuota: FC = ({ mobileView }) => { > {description} - + );