Skip to content

Commit

Permalink
Change file upload limit to 5KB
Browse files Browse the repository at this point in the history
Signed-off-by: Manank Patni <[email protected]>
  • Loading branch information
Man-Jain committed Sep 30, 2023
1 parent 098b298 commit 6fb03b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/modules/lite/creator/components/UploadAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const UploadAvatar: React.FC<any> = ({ setFieldValue, values, disabled })
return (
<AvatarCardContainer container direction={"column"}>
<AvatarBox item>
<Typography color="textSecondary">Avatar</Typography>
<Typography color="textSecondary">Avatar - 5Kb Max</Typography>
</AvatarBox>
<AvatarContainer container item style={{ gap: 28 }} alignItems={"center"} direction={"column"}>
<Grid item>
Expand All @@ -66,7 +66,7 @@ export const UploadAvatar: React.FC<any> = ({ setFieldValue, values, disabled })
setAvatarPreview(fileReader.result)
}
}
if (e.target && e.target.files && e.target.files?.length > 0) {
if (e.target && e.target.files && e.target.files?.length > 0 && e.target.files[0].size < 5000) {
fileReader.readAsDataURL(e.target.files[0])
}
}}
Expand Down
1 change: 0 additions & 1 deletion src/services/bakingBad/delegations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export const getLatestDelegation = async (daoAddress: string, network: Network)

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

if (!response.ok) {
Expand Down

0 comments on commit 6fb03b8

Please sign in to comment.