diff --git a/packages/protocol-dashboard/src/store/cache/protocol/hooks.ts b/packages/protocol-dashboard/src/store/cache/protocol/hooks.ts index 05209236f65..7d592ffeac6 100644 --- a/packages/protocol-dashboard/src/store/cache/protocol/hooks.ts +++ b/packages/protocol-dashboard/src/store/cache/protocol/hooks.ts @@ -84,7 +84,12 @@ export function fetchCurrentVersion( serviceType: ServiceType ): ThunkAction> { return async (dispatch, getState, aud) => { - const currentVersion = await aud.NodeType.getCurrentVersion(serviceType) + const numberOfVersions = + await aud.NodeType.getNumberOfVersions(serviceType) + const currentVersion = await aud.NodeType.getVersion( + serviceType, + numberOfVersions - 1 + ) dispatch(setCurrentVersion({ serviceType, currentVersion })) } }