Skip to content

Commit

Permalink
refactor(FilePreview): Remove unnecessary condition in logic
Browse files Browse the repository at this point in the history
  • Loading branch information
lgmarchi committed Jan 16, 2024
1 parent b89e0b3 commit 49c687e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kit/src/components/embeds/file_embed/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ pub fn FileEmbed<'a>(cx: Scope<'a, Props<'a>>) -> Element<'a> {
cx.props.on_press.call(Some(temp_dir.clone()));
enable_file_fullscreen_preview.set(false);
}),
if has_thumbnail || (is_video && has_thumbnail) {
if has_thumbnail {
rsx!(div {
class: "image-container",
aria_label: "message-image-container",
Expand Down

0 comments on commit 49c687e

Please sign in to comment.