Files
2024-02-15 17:01:50 +00:00

10 lines
317 B
TypeScript

import {Dataset} from '../types';
/**
* Currently we can tell if an alert is a crash free alert by the dataset,
* but this may become more complicated soon
*/
export function isCrashFreeAlert(dataset?: Dataset): boolean {
return dataset !== undefined && [Dataset.SESSIONS, Dataset.METRICS].includes(dataset);
}