mirror of
https://github.com/langgenius/dify.git
synced 2026-04-19 13:27:17 +08:00
fix: oxlint warning
This commit is contained in:
parent
78d47fa28f
commit
142f650d73
@ -33,7 +33,10 @@ const PlanUpgradeModal: FC<Props> = ({
|
|||||||
|
|
||||||
const handleUpgrade = useCallback(() => {
|
const handleUpgrade = useCallback(() => {
|
||||||
onClose()
|
onClose()
|
||||||
onUpgrade ? onUpgrade() : setShowPricingModal()
|
if (onUpgrade)
|
||||||
|
onUpgrade()
|
||||||
|
else
|
||||||
|
setShowPricingModal()
|
||||||
}, [onClose, onUpgrade, setShowPricingModal])
|
}, [onClose, onUpgrade, setShowPricingModal])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user