We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5c4461 commit cbb4107Copy full SHA for cbb4107
1 file changed
frontend/src/lib/utils/modCompatibility.ts
@@ -114,11 +114,8 @@ function checkTargetCompatibility(
114
const hasAllClient = clientRequiredTargets.length > 0 && unsupportedClientTargets.length === 0;
115
const hasAllServer = serverRequiredTargets.length > 0 && unsupportedServerTargets.length === 0;
116
117
- if (hasAllClient) {
118
- return unsupportedServerTargets;
119
- }
120
- if (hasAllServer) {
121
- return unsupportedClientTargets;
+ if (hasAllClient || hasAllServer) {
+ return [];
122
}
123
return [...unsupportedClientTargets, ...unsupportedServerTargets];
124
0 commit comments