Skip to content

Commit e181984

Browse files
committed
fix version check issues
1 parent 5f5a544 commit e181984

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/containers/LoadingScreen/index.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,15 @@ const LoadingScreen = ({ onEnd }: LoadingScreenProps) => {
271271
Log.error("Failed to get update info");
272272
return true; // Continue without OMP plugin
273273
}
274+
275+
const versionInfo = response.data.versions[useAppState.getState().version];
276+
277+
if (versionInfo) {
278+
response.data.download = versionInfo.download;
279+
response.data.ompPluginChecksum = versionInfo.ompPluginChecksum;
280+
response.data.ompPluginDownload = versionInfo.ompPluginDownload;
281+
}
282+
274283
updateInfo = response.data;
275284
useAppState.getState().setUpdateInfo(updateInfo);
276285
} else {

0 commit comments

Comments
 (0)