From a2b42d418fd9eac5ddbd03c061efaf4cbe3cbba6 Mon Sep 17 00:00:00 2001 From: ingawei Date: Wed, 11 Dec 2024 17:58:38 -0800 Subject: [PATCH] no head --- web/lib/firebase/stonk-images.ts | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/web/lib/firebase/stonk-images.ts b/web/lib/firebase/stonk-images.ts index 8a3b6356e3..0827d6fdc0 100644 --- a/web/lib/firebase/stonk-images.ts +++ b/web/lib/firebase/stonk-images.ts @@ -7,7 +7,6 @@ export const STONK_IMAGES_PATH = 'stonk-images' export async function uploadStonkImage(contractId: string, file: File) { // Get file extension from original file const ext = file.name.split('.').pop()?.toLowerCase() ?? 'jpg' -<<<<<<< HEAD // Create a new file with the contract ID as the name const newFile = new File([file], `${contractId}.${ext}`, { @@ -16,20 +15,6 @@ export async function uploadStonkImage(contractId: string, file: File) { // Upload using existing helper const imageUrl = await uploadPublicImage('system', newFile, STONK_IMAGES_PATH) -======= - - // Create a new file with the contract ID as the name - const newFile = new File([file], `${contractId}.${ext}`, { - type: file.type - }) - - // Upload using existing helper - const imageUrl = await uploadPublicImage( - 'system', - newFile, - STONK_IMAGES_PATH - ) ->>>>>>> 44ee46908fec23d1ee974ec84fde032d578a3d60 return imageUrl } @@ -41,8 +26,4 @@ export async function getStonkImageUrl(contractId: string) { } catch (error) { return null } -<<<<<<< HEAD -} -======= -} ->>>>>>> 44ee46908fec23d1ee974ec84fde032d578a3d60 +} \ No newline at end of file