diff --git a/src/components/project/Card.svelte b/src/components/project/Card.svelte index 9014a9be..0af3ab82 100644 --- a/src/components/project/Card.svelte +++ b/src/components/project/Card.svelte @@ -23,6 +23,16 @@ accountingBalance.balance?.amount !== undefined && project.budget?.minimum?.money?.amount !== undefined && Number(accountingBalance.balance.amount) - Number(project.budget.minimum.money.amount) > 0; + + function scrollToRewards() { + const rewardsElement = document.getElementById("tab-rewards"); + if (rewardsElement) { + rewardsElement.scrollIntoView({ + behavior: "smooth", + block: "start", + }); + } + }