Skip to content

Commit a48f2a0

Browse files
MelvinBothungvu193hungvu193
committed
Change currentUserAccountID param type from number | undefined to number in shouldCalculateBillNewDot
Co-authored-by: hungvu193 <trinhvkh@gmail.com> Co-authored-by: Hans <hungvu193@users.noreply.github.com>
1 parent d42296a commit a48f2a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libs/SubscriptionUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ function shouldRestrictUserBillableActions(
494494
return false;
495495
}
496496

497-
function shouldCalculateBillNewDot(currentUserAccountID: number | undefined, canDowngrade: boolean | undefined, policies: OnyxCollection<Policy>): boolean {
497+
function shouldCalculateBillNewDot(currentUserAccountID: number, canDowngrade: boolean | undefined, policies: OnyxCollection<Policy>): boolean {
498498
return (canDowngrade ?? false) && getOwnedPaidPolicies(policies, currentUserAccountID).length === 1;
499499
}
500500

0 commit comments

Comments
 (0)