diff --git a/components/user/identity/header/cic-rate/UserPageIdentityHeaderCICRate.tsx b/components/user/identity/header/cic-rate/UserPageIdentityHeaderCICRate.tsx
index 1ec0129c2e..fa70e70829 100644
--- a/components/user/identity/header/cic-rate/UserPageIdentityHeaderCICRate.tsx
+++ b/components/user/identity/header/cic-rate/UserPageIdentityHeaderCICRate.tsx
@@ -82,6 +82,12 @@ export default function UserPageIdentityHeaderCICRate({
profileProxy: activeProfileProxy ?? null,
});
},
+ onError: (error) => {
+ setToast({
+ message: error as unknown as string,
+ type: "error",
+ });
+ },
onSettled: () => {
setMutating(false);
},
@@ -185,6 +191,9 @@ export default function UserPageIdentityHeaderCICRate({
};
const adjustStrValueToMinMax = (): void => {
+ if (activeProfileProxy) {
+ return;
+ }
const { min, max } = getMinMaxValues();
const valueAsNumber = getStringAsNumberOrZero(adjustedRatingStr);
if (valueAsNumber > max) {
@@ -198,6 +207,9 @@ export default function UserPageIdentityHeaderCICRate({
};
const getIsValidValue = (): boolean => {
+ if (activeProfileProxy) {
+ return true;
+ }
const { min, max } = minMaxValues;
const valueAsNumber = getStringAsNumberOrZero(adjustedRatingStr);
if (valueAsNumber > max) {
diff --git a/components/user/identity/header/cic-rate/UserPageIdentityHeaderCICRateStats.tsx b/components/user/identity/header/cic-rate/UserPageIdentityHeaderCICRateStats.tsx
index 836605af40..f8d54bfcda 100644
--- a/components/user/identity/header/cic-rate/UserPageIdentityHeaderCICRateStats.tsx
+++ b/components/user/identity/header/cic-rate/UserPageIdentityHeaderCICRateStats.tsx
@@ -69,28 +69,15 @@ export default function UserPageIdentityHeaderCICRateStats({
)}
-
- Your available NIC:
-
- {formatNumberWithCommas(availableCredit)}
-
-
- {activeProfileProxy ? (
- <>
-
- Your max NIC Rating to {profile.handle}:
-
- {formatNumberWithCommas(minMaxValues.max)}
-
-
-
- Your min NIC Rating to {profile.handle}:
-
- {formatNumberWithCommas(minMaxValues.min)}
-
+ {!activeProfileProxy && (
+
+ Your available NIC:
+
+ {formatNumberWithCommas(availableCredit)}
- >
- ) : (
+
+ )}
+ {!activeProfileProxy && (
Your max/min NIC Rating to {profile.handle}:
diff --git a/components/user/rep/modify-rep/UserPageRepModifyModal.tsx b/components/user/rep/modify-rep/UserPageRepModifyModal.tsx
index 57fcfa7867..3775b76810 100644
--- a/components/user/rep/modify-rep/UserPageRepModifyModal.tsx
+++ b/components/user/rep/modify-rep/UserPageRepModifyModal.tsx
@@ -258,6 +258,9 @@ export default function UserPageRepModifyModal({
};
const adjustStrValueToMinMax = (): void => {
+ if (activeProfileProxy) {
+ return;
+ }
const { min, max } = minMaxValues;
const valueAsNumber = getStringAsNumberOrZero(adjustedRatingStr);
if (valueAsNumber > max) {
@@ -280,6 +283,9 @@ export default function UserPageRepModifyModal({
};
const getIsValidValue = (): boolean => {
+ if (activeProfileProxy) {
+ return true;
+ }
const { min, max } = minMaxValues;
const valueAsNumber = getStringAsNumberOrZero(adjustedRatingStr);
if (valueAsNumber > max) {
diff --git a/components/user/rep/modify-rep/UserPageRepModifyModalRaterStats.tsx b/components/user/rep/modify-rep/UserPageRepModifyModalRaterStats.tsx
index d5b7d161d5..b33c798b9f 100644
--- a/components/user/rep/modify-rep/UserPageRepModifyModalRaterStats.tsx
+++ b/components/user/rep/modify-rep/UserPageRepModifyModalRaterStats.tsx
@@ -68,28 +68,15 @@ export default function UserPageRepModifyModalRaterStats({
)}
-
- Your available Rep:
-
- {formatNumberWithCommas(availableCredit)}
-
-
- {activeProfileProxy ? (
- <>
-
- Your max Rep Rating to {repState.category}:
-
- {formatNumberWithCommas(minMaxValues.max)}
-
-
-
- Your min Rep Rating to {repState.category}:
-
- {formatNumberWithCommas(minMaxValues.min)}
-
+ {!activeProfileProxy && (
+
+ Your available Rep:
+
+ {formatNumberWithCommas(availableCredit)}
- >
- ) : (
+
+ )}
+ {!activeProfileProxy && (
Your max/min Rep Rating to {repState.category}:
diff --git a/components/user/rep/new-rep/UserPageRepNewRepSearchHeader.tsx b/components/user/rep/new-rep/UserPageRepNewRepSearchHeader.tsx
index b2659a42bd..c3a3107e79 100644
--- a/components/user/rep/new-rep/UserPageRepNewRepSearchHeader.tsx
+++ b/components/user/rep/new-rep/UserPageRepNewRepSearchHeader.tsx
@@ -8,7 +8,6 @@ import { ApiProfileProxyActionType } from "@/generated/models/ApiProfileProxyAct
import { useQuery } from "@tanstack/react-query";
import { commonApiFetch } from "@/services/api/common-api";
import Link from "next/link";
-import CommonInfoBox from "@/components/utils/CommonInfoBox";
import { QueryKey } from "@/components/react-query-wrapper/ReactQueryWrapper";
import type { ApiIdentity } from "@/generated/models/ApiIdentity";
export default function UserPageRepNewRepSearchHeader({
@@ -112,19 +111,13 @@ export default function UserPageRepNewRepSearchHeader({
)}
- {!!activeProfileProxy && !activeRepRates.available ? (
-
-
-
- ) : (
- <>
-
- Your available Rep:
-
- {formatNumberWithCommas(availableCredit)}
-
+ {!activeProfileProxy && (
+
+ Your available Rep:
+
+ {formatNumberWithCommas(availableCredit)}
- >
+
)}