Phone-run fixes: hash tokens, embed wakes on tab focus, dry faucet leaves drips due (+admin retry), short drip status, claim box wraps; one drip per wallet per mission

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-19 17:57:20 -05:00
parent 438b903bd3
commit fd72ea1b84
9 changed files with 42 additions and 24 deletions
+4 -2
View File
@@ -30,8 +30,10 @@ function paidToday(day) {
}
// has this member completed this mission already?
function completed(memberId, missionId) {
return store.read('payouts', []).some(p => p.memberId === Number(memberId) && p.missionId === missionId && p.status !== 'failed');
// by member id, and also by wallet: two accounts sharing a wallet get one drip per mission between them
function completed(memberId, missionId, wallet) {
const w = wallet ? String(wallet).toLowerCase() : null;
return store.read('payouts', []).some(p => p.missionId === missionId && p.status !== 'failed' && (p.memberId === Number(memberId) || (w && p.wallet && String(p.wallet).toLowerCase() === w)));
}
// record a completion; decide paid-today vs queued