Skip to content

Commit a8a4377

Browse files
committed
fix: proper policyregistry fetching
1 parent 870620f commit a8a4377

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/factory/kleros-params.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const KlerosParams = ({
150150
.padStart(64, '0')}`
151151

152152
setArbitratorExtraData(newArbitratorExtraData)
153-
setCourtID(newCourtID)
153+
setCourtID(Number(newCourtID))
154154
},
155155
[numberOfJurors, setArbitratorExtraData]
156156
)
@@ -187,7 +187,7 @@ const KlerosParams = ({
187187
labelInValue
188188
value={
189189
courts && courts.length > 0 && typeof courtID === 'number'
190-
? courts[courtID]
190+
? courts.find(court => courtID === court.courtID)
191191
: { key: 0, label: 'General Court' }
192192
}
193193
>

0 commit comments

Comments
 (0)