Skip to content

Commit f77b92f

Browse files
committed
fix(web): incorrect-feature-selection
1 parent 0e3fb9c commit f77b92f

File tree

1 file changed

+2
-2
lines changed
  • web/src/pages/Resolver/Parameters/Court/FeatureSelection

1 file changed

+2
-2
lines changed

web/src/pages/Resolver/Parameters/Court/FeatureSelection/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ const FeatureSelection: React.FC = () => {
5959
if (!defaultKit) return;
6060

6161
// some kits like gated can have two feature sets, one for gatedERC20 and other for ERC1155
62-
if (defaultKit?.featureSets.length > 0) {
62+
if (defaultKit?.featureSets.length > 1) {
6363
if ((disputeData?.disputeKitData as IGatedDisputeData)?.isERC1155) {
6464
// defaultKit.featureSets[0][0] - is either Classic or Shutter
6565
setSelected([defaultKit.featureSets[0][0], Features.GatedErc1155]);
6666
} else {
6767
setSelected([defaultKit.featureSets[0][0], Features.GatedErc20]);
6868
}
69-
} else {
69+
} else if (defaultKit.featureSets.length === 1) {
7070
setSelected(defaultKit.featureSets[0]);
7171
}
7272
}

0 commit comments

Comments
 (0)