SpeciesFileGroup/taxonworks

View on GitHub
app/javascript/vue/helpers/taxon_names.js

Summary

Maintainability
A
0 mins
Test Coverage
import { COMBINATION } from '@/constants/index.js'

export function getTaxonNameStatus(taxon) {
  if (taxon.type === COMBINATION) {
    return '[c]'
  }

  return taxon.cached_is_valid ? '✓' : '❌'
}