Skip to content

Commit

Permalink
fix(core): support provide empty avatar src (#9454)
Browse files Browse the repository at this point in the history
Co-authored-by: Anna Zhukova <[email protected]>
  • Loading branch information
ZhukAnna and Anna Zhukova authored Oct 11, 2024
1 parent e22d2ba commit 8a52bbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/core/pipes/fallback-src/fallback-src.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class TuiFallbackSrcPipe implements PipeTransform {
public transform(src: string, fallback: string): Observable<string> {
return fromEvent(this.el, 'error', {capture: true}).pipe(
map(() => fallback),
startWith(src),
startWith(src || fallback),
);
}
}

0 comments on commit 8a52bbc

Please sign in to comment.