chore: trust the Boolean :)

This commit is contained in:
Fredrik Adelöw
2020-09-22 11:49:45 +02:00
parent 8b53edb474
commit f49faa2aa2
4 changed files with 5 additions and 8 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ import { ROLLBAR_ANNOTATION } from '../constants';
import { EntityPageRollbar } from './EntityPageRollbar/EntityPageRollbar';
export const isPluginApplicableToEntity = (entity: Entity) =>
entity.metadata.annotations?.[ROLLBAR_ANNOTATION] !== '';
Boolean(entity.metadata.annotations?.[ROLLBAR_ANNOTATION]);
type Props = {
entity: Entity;