enzostvs HF staff commited on
Commit
1c0ea8c
1 Parent(s): 3b2ee8d

check if generatedImage exist

Browse files
src/lib/components/models/image/Image.svelte CHANGED
@@ -7,7 +7,7 @@
7
  export let generatedImage: string | undefined;
8
  export let alt: string | undefined;
9
 
10
- let loaded = src ? 0 : 1
11
 
12
  // onMount(() => {
13
  // const img = new Image();
 
7
  export let generatedImage: string | undefined;
8
  export let alt: string | undefined;
9
 
10
+ let loaded = src ? 0 : generatedImage ? 1 : 2;
11
 
12
  // onMount(() => {
13
  // const img = new Image();