Skip to content

Commit

Permalink
fix small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jfschwarz committed Jul 11, 2023
1 parent 3a4ae46 commit 81d9c5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zodiac-roles-sdk",
"version": "2.1.4",
"version": "2.1.5",
"license": "LGPL-3.0+",
"main": "build/cjs/sdk/src/index.js",
"module": "build/esm/sdk/src/index.js",
Expand All @@ -17,7 +17,7 @@
},
"typesVersions": {
"*": {
"index": [
".": [
"./build/cjs/sdk/src/index.d.ts"
],
"kit": [
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/presets/authoring/conditions/matches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ const assertCompatibleParamTypes = (
const scopedType = checkScopedType(condition)

if (scopedType !== expectedType) {
const fieldReference = `'${type.name}'` || `at index ${index}`
const fieldReference = type.name ? `'${type.name}'` : `at index ${index}`
throw new Error(
`Condition for field ${fieldReference} has wrong paramType \`${ParameterType[scopedType]}\` (expected: \`${ParameterType[expectedType]}\`)`
)
Expand Down

0 comments on commit 81d9c5d

Please sign in to comment.