Skip to content

Commit fdd1495

Browse files
authored
Merge pull request #972 from GetStream/attachment-logic
Attachment logic
2 parents 2b35d68 + e4fc011 commit fdd1495

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/Attachment/Attachment.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,15 @@ export const Attachment = <At extends DefaultAttachmentType = DefaultAttachmentT
163163
});
164164
}
165165

166-
if (isFileAttachment(attachment)) {
167-
return renderFile({
166+
if (isAudioAttachment(attachment)) {
167+
return renderAudio({
168168
...propsWithDefault,
169169
attachment,
170170
});
171171
}
172172

173-
if (isAudioAttachment(attachment)) {
174-
return renderAudio({
173+
if (isFileAttachment(attachment)) {
174+
return renderFile({
175175
...propsWithDefault,
176176
attachment,
177177
});

0 commit comments

Comments
 (0)