Skip to content

Commit

Permalink
Merge pull request #771 from 0xsend/bb/patch-sendtag-referrer
Browse files Browse the repository at this point in the history
fix sendtag referrer, prioritize referrer code
  • Loading branch information
0xBigBoss authored Oct 18, 2024
2 parents 619cbdc + 0ebdfac commit a504eaa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export async function fetchReferrer({
.maybeSingle(),
])

const referrer = [profileByTag, profileByReferralCode].find((p) => {
const referrer = [profileByReferralCode, profileByTag].find((p) => {
if (!p) return false
if (p.id === profile.id) return false // no self referrals
if (!p.address) return false // need a send account
Expand Down

0 comments on commit a504eaa

Please sign in to comment.