Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const TriggerErrorCard = ({ index, count, error, className }) => {
const { t, lang } = useI18n()
const { bankName, trigger } = error
const konnError = new KonnectorJobError(trigger.current_state.last_error)
// We do not have a full konnector object here but we can create a simple
// one, that is sufficient for getErrorLocaleBound, from the information in
// the trigger
const konnector = {
slug: trigger.message.slug,
name: bankName
}
const errorTitle = getErrorLocaleBound(konnError, konnector, lang, 'title')
return (