Skip to content

Commit

Permalink
feat: default to 0 storage
Browse files Browse the repository at this point in the history
  • Loading branch information
dr497 committed Jan 29, 2024
1 parent ff8fe74 commit 9f193ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/DomainSizeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { useStorageMap } from "@src/hooks/useStorageMap";
import { WrapModal } from "./WrapModal";

const LIST = [
{ label: "0kb", value: 0 },
{ label: "1kb", value: 1_000 },
{ label: "2kb", value: 2_000 },
{ label: "3kb", value: 3_000 },
Expand All @@ -29,7 +30,7 @@ export const DomainSizeModal = ({

useEffect(() => {
if (!map.get(domain)) {
actions.set(domain, 1_000);
actions.set(domain, 0);
}
}, []);

Expand Down
2 changes: 1 addition & 1 deletion src/screens/Cart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const checkEnoughFunds = async (
return balances > total;
};

const DEFAULT_SPACE = 1_000;
const DEFAULT_SPACE = 0;

type CurrentStep = 1 | 2 | 3;

Expand Down

0 comments on commit 9f193ed

Please sign in to comment.