Skip to content

Commit

Permalink
Merge pull request #1283 from AletheiaFact/fixed-user-inputs-display
Browse files Browse the repository at this point in the history
BUGFIX: Fixed user name display in users inputs
  • Loading branch information
thesocialdev authored Jul 5, 2024
2 parents 08edcb0 + 6627491 commit f2c5a4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Form/FetchInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ const FetchInput = ({
}: FetchInputProps) => {
const [treatedValue, setTreatedValue] = useState([]);
const [isLoading, setIsLoading] = useState(false);
const apiFunction =
fieldName === "usersId"
? userApi.getById
: verificationRequestApi.getById;
const userFields = ["usersId", "crossCheckerId", "reviewerId"];
const apiFunction = userFields.includes(fieldName)
? userApi.getById
: verificationRequestApi.getById;

useEffect(() => {
const fetchSelectedContent = async () => {
Expand Down

0 comments on commit f2c5a4a

Please sign in to comment.