Skip to content

Commit

Permalink
update state initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
alisher-epam committed Nov 3, 2023
1 parent 98ef11b commit c96feae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DonorsList/DonorsContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import DonorsList from './DonorsList';
import { useFetchDonors } from './hooks';

function DonorsContainer({ name, donorOrganizationIds }) {
const [donorIds, setDonorIds] = useState(() => donorOrganizationIds);
const [donorIds, setDonorIds] = useState(donorOrganizationIds);
const { donors, isLoading } = useFetchDonors(donorIds);

const donorsMap = donors.reduce((acc, contact) => {
Expand Down

0 comments on commit c96feae

Please sign in to comment.