vanity referrals (#5353)
This commit is contained in:
parent
7156f4b36b
commit
2f1fae23cf
1 changed files with 9 additions and 2 deletions
|
@ -1,4 +1,11 @@
|
|||
import { Lbry, doFetchChannelListMine, batchActions, makeSelectClaimForUri, isURIValid } from 'lbry-redux';
|
||||
import {
|
||||
Lbry,
|
||||
doFetchChannelListMine,
|
||||
batchActions,
|
||||
makeSelectClaimForUri,
|
||||
isURIValid,
|
||||
normalizeURI,
|
||||
} from 'lbry-redux';
|
||||
import * as ACTIONS from 'constants/action_types';
|
||||
import { doClaimRewardType, doRewardList } from 'redux/actions/rewards';
|
||||
import { selectEmailToVerify, selectPhoneToVerify, selectUserCountryCode, selectUser } from 'redux/selectors/user';
|
||||
|
@ -684,7 +691,7 @@ export function doUserSetReferrer(referrer, shouldClaim) {
|
|||
let referrerCode;
|
||||
const isValid = isURIValid(referrer);
|
||||
if (isValid) {
|
||||
const uri = `lbry://${referrer}`;
|
||||
const uri = normalizeURI(referrer);
|
||||
claim = makeSelectClaimForUri(uri)(getState());
|
||||
if (!claim) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue