Commit 86b85e25 authored by Noah Zinsmeister's avatar Noah Zinsmeister

fix proposal formatting

parent 0ea635ce
......@@ -2,3 +2,4 @@ export const UNISWAP_GRANTS_START_BLOCK = 11473815
export const BRAVO_START_BLOCK = 13059344
export const ONE_BIP_START_BLOCK = 13551293
export const POLYGON_START_BLOCK = 13786993
export const MOONBEAN_START_BLOCK = 14732457
......@@ -26,6 +26,7 @@ import { calculateGasMargin } from 'utils/calculateGasMargin'
import { SupportedChainId } from '../../constants/chains'
import {
BRAVO_START_BLOCK,
MOONBEAN_START_BLOCK,
ONE_BIP_START_BLOCK,
POLYGON_START_BLOCK,
UNISWAP_GRANTS_START_BLOCK,
......@@ -168,8 +169,12 @@ function useFormattedProposalCreatedLogs(
description = JSON.parse(toUtf8String(error.error.value, onError)) || ''
}
// Bravo and one bip proposals omit newlines
if (startBlock === BRAVO_START_BLOCK || startBlock === ONE_BIP_START_BLOCK) {
// some proposals omit newlines
if (
startBlock === BRAVO_START_BLOCK ||
startBlock === ONE_BIP_START_BLOCK ||
startBlock === MOONBEAN_START_BLOCK
) {
description = description.replace(/ {2}/g, '\n').replace(/\d\. /g, '\n$&')
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment