diff --git a/apps/dotcom/src/hooks/useMultiplayerAssets.ts b/apps/dotcom/src/hooks/useMultiplayerAssets.ts index f98e9d0ad..10f3b3cac 100644 --- a/apps/dotcom/src/hooks/useMultiplayerAssets.ts +++ b/apps/dotcom/src/hooks/useMultiplayerAssets.ts @@ -35,11 +35,7 @@ export function useMultiplayerAssets(assetUploaderUrl: string) { if (isImageType) { size = await MediaHelpers.getImageSize(file) - if (MediaHelpers.isAnimatedImageType(file.type)) { - isAnimated = true // await getIsGifAnimated(file) todo export me from editor - } else { - isAnimated = false - } + isAnimated = await MediaHelpers.isAnimated(file) } else { isAnimated = true size = await MediaHelpers.getVideoSize(file) diff --git a/apps/dotcom/src/utils/createAssetFromFile.ts b/apps/dotcom/src/utils/createAssetFromFile.ts index 5d10a9af2..e9cd6810d 100644 --- a/apps/dotcom/src/utils/createAssetFromFile.ts +++ b/apps/dotcom/src/utils/createAssetFromFile.ts @@ -33,11 +33,7 @@ export async function createAssetFromFile({ file }: { type: 'file'; file: File } if (isImageType) { size = await MediaHelpers.getImageSize(file) - if (MediaHelpers.isAnimatedImageType(file.type)) { - isAnimated = true // await getIsGifAnimated(file) todo export me from editor - } else { - isAnimated = false - } + isAnimated = await MediaHelpers.isAnimated(file) } else { isAnimated = true size = await MediaHelpers.getVideoSize(file)