Closed krishnaacharyaa closed 1 year ago
Change const donations = await contract.call('getDonators', pId); to const donations = await contract.call('getDonators', [pId]);
const donations = await contract.call('getDonators', pId);
const donations = await contract.call('getDonators', [pId]);
And now to change the further commented error
Warning: Each child in a list should have a unique "key" prop.
Try adding unique id by uuidv4 by npm
uuidv4
Change
const donations = await contract.call('getDonators', pId);
toconst donations = await contract.call('getDonators', [pId]);
And now to change the further commented error
Try adding unique id by
uuidv4
by npm