Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Agrim/Pr 2903 minified react error (#7846)
Browse files Browse the repository at this point in the history
* fix: minified react error

* fix: empty commit

* fix: revert changes

* fix: empty commit

* fix: remove loss percent as done through strapi
  • Loading branch information
agrim-deriv authored Jul 11, 2024
1 parent 2e5a97b commit 693c1f0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
import { DerivGoBanner } from './deriv-go-banner'
import { IIPAward } from './iip-award'
import { DescriptionContent } from './description'
import { usePageLoaded } from 'components/hooks/use-page-loaded'
import useThirdPartyFlags from 'components/hooks/use-third-party-flags'
import { getLocationPathname } from 'common/utility'
import useRegion from 'components/hooks/use-region'
Expand Down Expand Up @@ -76,13 +77,15 @@ export const MainFooter = () => {
cpa_social_media_icons,
])

const[is_mounted] = usePageLoaded();
if(!is_mounted) return null

return (
<Footer.FooterBlock
warningText={warn_text && (
<Text className={`text-solid-slate-600 ${region !== 'eu' && !is_cpa_plan ? 'additional-warning-classname' : ''}`} size="sm">
<Localize
translate_text={warn_text}
values={{ loss_percent: 'some_value' }} // Replace 'some_value' with the appropriate value
/>
</Text>
)}
Expand Down

0 comments on commit 693c1f0

Please sign in to comment.