fix: oxlint no unused expressions (#29675)

Co-authored-by: daniel <daniel@example.com>
This commit is contained in:
Angel98518
2025-12-16 18:00:04 +08:00
committed by GitHub
parent b7649f61f8
commit c2f2be6b08
8 changed files with 16 additions and 8 deletions

View File

@ -33,7 +33,10 @@ const PlanUpgradeModal: FC<Props> = ({
const handleUpgrade = useCallback(() => {
onClose()
onUpgrade ? onUpgrade() : setShowPricingModal()
if (onUpgrade)
onUpgrade()
else
setShowPricingModal()
}, [onClose, onUpgrade, setShowPricingModal])
return (