Skip to content

Commit

Permalink
Don't show balance changes if redefine is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Jul 28, 2023
1 parent 3663f32 commit 7f7b2cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/tx/security/redefine/RedefineBalanceChange.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import ArrowOutwardIcon from '@/public/images/transactions/outgoing.svg'
import ArrowDownwardIcon from '@/public/images/transactions/incoming.svg'
import InfoIcon from '@/public/images/notifications/info.svg'
import ExternalLink from '@/components/common/ExternalLink'
import { REDEFINE_ARTICLE } from '@/config/constants'
import { REDEFINE_API, REDEFINE_ARTICLE } from '@/config/constants'

import css from './styles.module.css'

Expand Down Expand Up @@ -143,7 +143,7 @@ const BalanceChanges = () => {
}

export const RedefineBalanceChanges = () => {
const isFeatureEnabled = useHasFeature(FEATURES.RISK_MITIGATION)
const isFeatureEnabled = useHasFeature(FEATURES.RISK_MITIGATION) && REDEFINE_API

if (!isFeatureEnabled) {
return null
Expand Down

0 comments on commit 7f7b2cc

Please sign in to comment.