Skip to content

Commit 94e414b

Browse files
authored
Change file upload limit to 5KB (#678)
Signed-off-by: Manank Patni <[email protected]>
1 parent 39790d1 commit 94e414b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/modules/lite/creator/components/UploadAvatar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const UploadAvatar: React.FC<any> = ({ setFieldValue, values, disabled })
4242
return (
4343
<AvatarCardContainer container direction={"column"}>
4444
<AvatarBox item>
45-
<Typography color="textSecondary">Avatar</Typography>
45+
<Typography color="textSecondary">Avatar - 5Kb Max</Typography>
4646
</AvatarBox>
4747
<AvatarContainer container item style={{ gap: 28 }} alignItems={"center"} direction={"column"}>
4848
<Grid item>
@@ -66,7 +66,7 @@ export const UploadAvatar: React.FC<any> = ({ setFieldValue, values, disabled })
6666
setAvatarPreview(fileReader.result)
6767
}
6868
}
69-
if (e.target && e.target.files && e.target.files?.length > 0) {
69+
if (e.target && e.target.files && e.target.files?.length > 0 && e.target.files[0].size < 5000) {
7070
fileReader.readAsDataURL(e.target.files[0])
7171
}
7272
}}

src/services/bakingBad/delegations/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export const getLatestDelegation = async (daoAddress: string, network: Network)
2222

2323
export const getTokenDelegation = async (tokenAddress: string, account: string, network: Network) => {
2424
const url = `https://api.${networkNameMap[network]}.tzkt.io/v1/contracts/${tokenAddress}/bigmaps/delegates/keys?key.eq=${account}&active=true`
25-
console.log("urlssdasd: ", url)
2625
const response = await fetch(url)
2726

2827
if (!response.ok) {

0 commit comments

Comments
 (0)