Skip to content

Commit

Permalink
fix eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahidullah-Muffakir committed Dec 12, 2024
1 parent 28d8607 commit 8931dbd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function SubscriptionSettings() {
const [privateSubscription] = useOnyx(ONYXKEYS.NVP_PRIVATE_SUBSCRIPTION);
const preferredCurrency = usePreferredCurrency();
const possibleCostSavings = useSubscriptionPossibleCostSavings();
const [isActingAsDelegate] = useOnyx(ONYXKEYS.ACCOUNT, {selector: (account) => account?.delegatedAccess?.delegate});
const isActingAsDelegate = !!account?.delegatedAccess?.delegate;
const [isNoDelegateAccessMenuVisible, setIsNoDelegateAccessMenuVisible] = useState(false);

const autoRenewalDate = formatSubscriptionEndDate(privateSubscription?.endDate);
Expand All @@ -42,7 +42,7 @@ function SubscriptionSettings() {
Subscription.updateSubscriptionAutoRenew(true);
return;
}
if (!!account?.hasPurchases) {
if (account?.hasPurchases) {
Navigation.navigate(ROUTES.SETTINGS_SUBSCRIPTION_DISABLE_AUTO_RENEW_SURVEY);
} else {
Subscription.updateSubscriptionAutoRenew(false);
Expand Down

0 comments on commit 8931dbd

Please sign in to comment.