Last active
October 26, 2019 07:55
-
-
Save lukebrandonfarrell/558d0e758db2a3d4c5e0f86f5873d8f6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { data: userData, isLoading: isUserLoading, error: isUserError } = ...; | |
const { data: referralData, isLoading: isReferralsLoading, error: isReferralsError } = ...; | |
const isUserReferralEmpty = _isNil(referralUrl); | |
const isReferralsEmpty = _isEmpty(referrals); | |
const isReferralsAvailable = !_isEmpty(referrals) && !isReferralsError; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment