Update revolt.js to fix types

This commit is contained in:
bree
2021-07-04 21:09:24 -04:00
parent 3c2a85a3e4
commit e070f26bda
3 changed files with 6 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ export default function AttachmentActions({ attachment }: Props) {
const download_url = url.replace('attachments', 'attachments/download')
// for some reason revolt.js says the size is a string even though it's a number
const filesize = determineFileSize(size as unknown as number);
const filesize = determineFileSize(size);
switch (metadata.type) {
case 'Image':