fix: avoid replaceAll (#2361)

This commit is contained in:
Zach Pomerantz 2021-09-15 13:20:14 -07:00 committed by GitHub
parent c68d08ac26
commit 308f7d59a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -135,7 +135,7 @@ function useFormattedProposalCreatedLogs(
// Bravo proposal omits newlines
if (startBlock === BRAVO_START_BLOCK) {
description = description.replaceAll(/ /g, '\n').replaceAll(/\d\. /g, '\n$&')
description = description.replace(/ /g, '\n').replace(/\d\. /g, '\n$&')
}
}
return {