Skip to content

Commit

Permalink
fix: remove unecessery fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Dec 3, 2024
1 parent 251873f commit acb3173
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions apps/ui/src/views/Space/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import { validateForm } from '@/helpers/validation';
import { getNetwork, offchainNetworks } from '@/networks';
import { Contact, Space, Transaction, VoteType } from '@/types';
const DEFAULT_VOTING_DELAY = 60 * 60 * 24 * 3;
const TITLE_DEFINITION = {
type: 'string',
title: 'Title',
Expand Down Expand Up @@ -218,10 +216,8 @@ async function handleProposeClick() {
const appName = (route.query.app as LocationQueryValue) || '';
const currentTime = Math.floor(Date.now() / 1000);
const start = currentTime + props.space.voting_delay;
const minEnd =
start + (props.space.min_voting_period || DEFAULT_VOTING_DELAY);
const maxEnd =
start + (props.space.max_voting_period || DEFAULT_VOTING_DELAY);
const minEnd = start + props.space.min_voting_period;
const maxEnd = start + props.space.max_voting_period;
result = await propose(
props.space,
Expand Down

0 comments on commit acb3173

Please sign in to comment.