first commit
This commit is contained in:
6
calcom/packages/lib/checkIfItFallbackImage.ts
Normal file
6
calcom/packages/lib/checkIfItFallbackImage.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { AVATAR_FALLBACK } from "./constants";
|
||||
|
||||
const checkIfItFallbackImage = (fetchedImgSrc: string) => {
|
||||
return !fetchedImgSrc || fetchedImgSrc.endsWith(AVATAR_FALLBACK);
|
||||
};
|
||||
export default checkIfItFallbackImage;
|
||||
Reference in New Issue
Block a user