Skip to content

Commit

Permalink
fix: fix empty voting period being overriden
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Dec 3, 2024
1 parent 3519562 commit 607d8be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions apps/ui/src/networks/offchain/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ import {
ApiStrategy,
ApiVote
} from './types';
import { DEFAULT_VOTING_DELAY } from '../constants';

const DEFAULT_AUTHENTICATOR = 'OffchainAuthenticator';

Expand Down Expand Up @@ -175,8 +174,8 @@ function formatSpace(
voting_types: space.voting.type
? [space.voting.type]
: constants.EDITOR_VOTING_TYPES,
min_voting_period: space.voting.period ?? DEFAULT_VOTING_DELAY,
max_voting_period: space.voting.period ?? DEFAULT_VOTING_DELAY,
min_voting_period: space.voting.period ?? 0,
max_voting_period: space.voting.period ?? 0,
proposal_threshold: '1',
treasuries,
labels: space.labels,
Expand Down
2 changes: 0 additions & 2 deletions apps/ui/src/networks/offchain/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,3 @@ export const EDITOR_VOTING_TYPES: VoteType[] = [
'weighted',
'quadratic'
];

export const DEFAULT_VOTING_DELAY = 60 * 60 * 24 * 7;

0 comments on commit 607d8be

Please sign in to comment.