Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucianosc committed Jul 23, 2024
1 parent 01e1a1f commit 52cc209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/components/Forms/PoolForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ export function PoolForm({ token, communityAddr, chainId }: Props) {
minThresholdPoints: {
label: "Minimum threshold points:",
parse: (value: string) => {
return value ?? "0";
// check if string is empty or undefined with ||
return value || "0";
},
},
isSybilResistanceRequired: {
Expand Down Expand Up @@ -340,7 +341,6 @@ export function PoolForm({ token, communityAddr, chainId }: Props) {
toast
.promise(ipfsUpload, {
pending: "Preparing everything, wait a moment...",
// success: "All ready!",
error: "Error uploading data to IPFS",
})
.then((ipfsHash) => {
Expand Down

0 comments on commit 52cc209

Please sign in to comment.