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:
+4
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user