Closed byte14 closed 1 year ago
We are storing the same funder multiple times, and we don't want that, we should check if the funder is already in the funders array and if it is already in then just increase the fund balance and if funder is new then store it in the array.
Thanks! You're right, we should have this, but to keep this the same as the video, I'm going to close this.
We are storing the same funder multiple times, and we don't want that, we should check if the funder is already in the funders array and if it is already in then just increase the fund balance and if funder is new then store it in the array.