added OurSponsors: comments to ? : statement

This commit is contained in:
darkicewolf50 2024-03-17 21:25:51 -06:00
parent 8f615d4f1b
commit ed09013129

View File

@ -92,11 +92,12 @@ const OurSponsors = () => {
</div> </div>
<div id="Sponsor"> <div id="Sponsor">
<h2 className="SponsorsTitle">Current Sponsors</h2> <h2 className="SponsorsTitle">Current Sponsors</h2>
{/* gets the outmost name of the Object Name of tier*/} {/* shows the current sponsors only after the data has been recieved */}
{currentSponsorsDict === undefined ? ( {currentSponsorsDict === undefined ? (
<p>Loading...</p> <p>Loading...</p>
) : ( ) : (
<> <>
{/* gets the outmost name of the Object Name of tier*/}
{Object.keys(currentSponsorsDict).map((sponsorsTier) => { {Object.keys(currentSponsorsDict).map((sponsorsTier) => {
return ( return (
<div className="Sponsors"> <div className="Sponsors">
@ -151,6 +152,7 @@ const OurSponsors = () => {
id="SponsorEnd"> id="SponsorEnd">
Past Sponsors Past Sponsors
</h2> </h2>
{/* shows past sponsors only when recieved, do not duplicate the sponsors from current ones */}
{pastSponsorsDict === undefined ? ( {pastSponsorsDict === undefined ? (
<p>Loading...</p> <p>Loading...</p>
) : ( ) : (