fix: download image

This commit is contained in:
gofnnp 2023-09-12 06:54:00 +04:00
parent 4496b4d907
commit 6213bebda2
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ export interface Response {
export interface Asset {
id: string
url: string
key: string
asset_data: AssetData
}

View File

@ -86,7 +86,7 @@ function HomePage(): JSX.Element {
const downloadImg = () => {
if( !asset ) return;
download(asset.url.replace('http://', 'https://'), 'image.png');
download(asset.url, 'image.png');
}
return (