Skip to content

Commit

Permalink
chore: fixup fallbackSDK
Browse files Browse the repository at this point in the history
  • Loading branch information
jkleinsc committed Jun 13, 2024
1 parent b2fdc49 commit 04d5f9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ const SDKs = {
};

const fallbackSDK = () => {
return Object.keys(SDKs)
const semverFallback = Object.keys(SDKs)
.map(v => semver.valid(semver.coerce(v)))
.sort(semver.rcompare)[0];
return semverFallback.substring(0, semverFallback.length - 2);
};

function getSDKVersion() {
Expand Down

0 comments on commit 04d5f9a

Please sign in to comment.