Remix.run Logo
Narishma 4 hours ago

Didn't you just shift the branch to the calculateDiscount() function?

1718627440 an hour ago | parent [-]

Not necessarily.

   return 1 - user.isPremiumMember * 0.1;
would also cut it.