mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
Update revolt.js to fix types
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user