removed dummy account

This commit is contained in:
Sadaqat Ali 2022-02-22 14:28:56 +05:00
parent f452765d0d
commit b3ed91613e

View File

@ -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)