Skip to content

Commit

Permalink
fix: app crashes when open default workspace avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Feb 20, 2024
1 parent 1806422 commit 23cbd01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Attachments/AttachmentView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function AttachmentView({
const styles = useThemeStyles();
const StyleUtils = useStyleUtils();
const [loadComplete, setLoadComplete] = useState(false);
const isVideo = Str.isVideo(source);
const isVideo = typeof source === 'string' && Str.isVideo(source);

useEffect(() => {
if (!isFocused) {
Expand Down

0 comments on commit 23cbd01

Please sign in to comment.