fix: oxlint warning

This commit is contained in:
yyh
2025-12-11 18:15:55 +08:00
parent 78d47fa28f
commit 142f650d73

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 (