Skip to content

Commit

Permalink
Update PromoCard2 for new API
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-edge committed Jan 3, 2024
1 parent 6676d59 commit ad6a66e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/ui4/PromoCardUi4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ export function PromoCardUi4Component(props: Props) {

const handlePress = useHandler(() => {
if (ctaButton == null) return
const { url } = ctaButton
const { localeUrls } = ctaButton
const url = getLocaleOrDefaultString(localeUrls)
if (url == null) {
showError('No PromoCard URL found')
return
}

dispatch(linkReferralWithCurrencies(navigation, url)).catch(err => showError(err))
})
Expand Down

0 comments on commit ad6a66e

Please sign in to comment.