diff --git a/src/modules/lite/creator/components/UploadAvatar.tsx b/src/modules/lite/creator/components/UploadAvatar.tsx index 977aa464..f6bba449 100644 --- a/src/modules/lite/creator/components/UploadAvatar.tsx +++ b/src/modules/lite/creator/components/UploadAvatar.tsx @@ -42,7 +42,7 @@ export const UploadAvatar: React.FC = ({ setFieldValue, values, disabled }) return ( - Avatar + Avatar - 5Kb Max @@ -66,7 +66,7 @@ export const UploadAvatar: React.FC = ({ 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]) } }} diff --git a/src/services/bakingBad/delegations/index.ts b/src/services/bakingBad/delegations/index.ts index 1cde4dd7..2bc8e4d5 100644 --- a/src/services/bakingBad/delegations/index.ts +++ b/src/services/bakingBad/delegations/index.ts @@ -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) {