Skip to content

Commit

Permalink
no head
Browse files Browse the repository at this point in the history
  • Loading branch information
ingawei committed Dec 12, 2024
1 parent 68bab86 commit a2b42d4
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions web/lib/firebase/stonk-images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`, {
Expand All @@ -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
}
Expand All @@ -41,8 +26,4 @@ export async function getStonkImageUrl(contractId: string) {
} catch (error) {
return null
}
<<<<<<< HEAD
}
=======
}
>>>>>>> 44ee46908fec23d1ee974ec84fde032d578a3d60
}

0 comments on commit a2b42d4

Please sign in to comment.