return equal

This commit is contained in:
Hardhat Chad
2025-05-23 19:30:36 -07:00
parent b8cf9b0208
commit 2aee4eb4bf
2 changed files with 4 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ pub fn process_payout(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResu
block.payed_out = 1;
// Skip payout if no bets were placed.
if block.total_bets == 0 {
if block.total_bets == 0 || block.reward == 0 {
return Ok(());
}