@reserve-protocol/sdk 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -24812,8 +24812,8 @@ function withChallengeState(proposals) {
|
|
|
24812
24812
|
}
|
|
24813
24813
|
function getChallengeDescription(description) {
|
|
24814
24814
|
if (!description.startsWith(CHALLENGE_DESCRIPTION_PREFIX)) return;
|
|
24815
|
-
const challengeDescription = description.slice(17).
|
|
24816
|
-
return challengeDescription.length > 0 ? challengeDescription : void 0;
|
|
24815
|
+
const challengeDescription = description.slice(17).replace(/^ /, "");
|
|
24816
|
+
return challengeDescription.trim().length > 0 ? challengeDescription : void 0;
|
|
24817
24817
|
}
|
|
24818
24818
|
function getProposalFilter(states) {
|
|
24819
24819
|
if (!states || states.length === 0) return;
|