From cd0b1d0d4b1f88dc91cf5500912fa8e76055fd17 Mon Sep 17 00:00:00 2001 From: megrogan Date: Fri, 26 Jul 2024 12:39:24 +0100 Subject: [PATCH] Fix --- backend/canisters/airdrop_bot/impl/src/model/airdrops.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/canisters/airdrop_bot/impl/src/model/airdrops.rs b/backend/canisters/airdrop_bot/impl/src/model/airdrops.rs index 39e8e94fd5..a1237d0d6e 100644 --- a/backend/canisters/airdrop_bot/impl/src/model/airdrops.rs +++ b/backend/canisters/airdrop_bot/impl/src/model/airdrops.rs @@ -161,6 +161,10 @@ impl Airdrops { block_index: None, }, )); + + if ticket_holders.is_empty() { + break; + } } let airdrop = Airdrop {