mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-29 22:07:46 +03:00
removed dummy account
This commit is contained in:
parent
f452765d0d
commit
b3ed91613e
@ -57,8 +57,7 @@ const ReferScreen = ({ navigation }) => {
|
||||
? null
|
||||
: referralsList[referralsList.length - 1]._id;
|
||||
|
||||
// const responseData = await getReferralsList(currentAccount.name, lastReferralId);
|
||||
const responseData = await getReferralsList('ecency', lastReferralId);
|
||||
const responseData = await getReferralsList(currentAccount.name, lastReferralId);
|
||||
|
||||
setReferralsList(refresh ? responseData : [...referralsList, ...responseData])
|
||||
setRefreshing(false);
|
||||
@ -68,8 +67,7 @@ const ReferScreen = ({ navigation }) => {
|
||||
const _getReferralsStats = async () => {
|
||||
setLoading(true);
|
||||
|
||||
// const referralStats = await getReferralsStats(currentAccount.name);
|
||||
const referralStats = await getReferralsStats('ecency');
|
||||
const referralStats = await getReferralsStats(currentAccount.name);
|
||||
const earnedPoints = referralStats.rewarded * 100;
|
||||
const unearnedPoints = (referralStats.total - referralStats.rewarded) * 100;
|
||||
setEarnedPoint(earnedPoints)
|
||||
|
Loading…
Reference in New Issue
Block a user