Skip to content

Commit 4a121f0

Browse files
committed
fix: fix 'airdrops108_of()' API in ic_panda_luckypool
1 parent 752f6a0 commit 4a121f0

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ opt-level = 's'
2121

2222
[workspace.package]
2323
edition = "2021"
24-
version = "2.6.4"
24+
version = "2.6.5"
2525
repository = "https://github.com/ldclabs/ic-panda"
2626
keywords = ["canister", "icp", "panda"]
2727
categories = ["web-programming"]

src/ic_panda_frontend/src/lib/components/airdrop/Home.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
4040
function checkInput() {
4141
if (userInput) {
42-
console.log('Checking input:', userInput)
4342
try {
4443
user = Principal.fromText(userInput.trim())
4544
validating = true

src/ic_panda_luckypool/src/store.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl State {
7575
let mut airdrops: Vec<types::Airdrop> = Vec::new();
7676
let mut ledger_airdropped = false;
7777
let mut neurons_airdropped = false;
78-
if let Some(list) = x.neurons.get(&user) {
78+
if let Some(list) = x.ledger.get(&user) {
7979
ledger_airdropped = !list.is_empty() && !x.ledger_todo_list.contains(&user);
8080
list.iter()
8181
.map(|a| types::Airdrop {
@@ -85,7 +85,7 @@ impl State {
8585
})
8686
.for_each(|x| airdrops.push(x))
8787
};
88-
if let Some(list) = x.ledger.get(&user) {
88+
if let Some(list) = x.neurons.get(&user) {
8989
neurons_airdropped = !list.is_empty() && !x.neurons_todo_list.contains(&user);
9090
list.iter()
9191
.map(|a| types::Airdrop {

0 commit comments

Comments
 (0)