Skip to content

Commit

Permalink
fix: version
Browse files Browse the repository at this point in the history
  • Loading branch information
winchesHe committed Dec 5, 2024
1 parent 264773e commit 4dc65d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/helpers/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ interface CheckPeerDependenciesConfig {

function getConditionData(beta: boolean, canary: boolean) {
return beta
? {betaVersion: store.betaVersion, tag: 'beta'}
? {tag: 'beta', version: store.betaVersion}
: canary
? {canaryVersion: store.canaryVersion, tag: 'canary'}
? {tag: 'canary', version: store.canaryVersion}
: null;
}

Expand Down Expand Up @@ -158,7 +158,7 @@ export async function checkRequiredContentInstalled<
return [true];
}
!hasAllComponents &&
result.push(conditionData ? `${NEXT_UI}@${conditionData.betaVersion}` : NEXT_UI);
result.push(conditionData ? `${NEXT_UI}@${conditionData.version}` : NEXT_UI);
!hasFramerMotion && result.push(FRAMER_MOTION);
!hasTailwind && result.push(TAILWINDCSS);
} else if (type === 'partial') {
Expand Down

0 comments on commit 4dc65d8

Please sign in to comment.