fix: oxlint warning

This commit is contained in:
yyh 2025-12-11 18:15:55 +08:00
parent 78d47fa28f
commit 142f650d73
No known key found for this signature in database
1 changed files with 4 additions and 1 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 (