diff --git a/ts/components/dialog/debug/components.tsx b/ts/components/dialog/debug/components.tsx
index 1a8babd17..5cd47fc76 100644
--- a/ts/components/dialog/debug/components.tsx
+++ b/ts/components/dialog/debug/components.tsx
@@ -17,6 +17,7 @@ import { updateDebugMenuModal } from '../../../state/ducks/modalDialog';
export const DebugActions = () => {
const [loadingLatestRelease, setLoadingLatestRelease] = useBoolean(false);
+ const [loadingAlphaRelease, setLoadingAlphaRelease] = useBoolean(false);
const dispatch = useDispatch();
@@ -77,7 +78,7 @@ export const DebugActions = () => {
const userEd25519SecretKey = (await UserUtils.getUserED25519KeyPairBytes())
?.privKeyBytes;
if (!userEd25519SecretKey) {
- window.log.error('[debugMenu] no userEd25519SecretKey');
+ window.log.error('[debugMenu] debugLatestRelease no userEd25519SecretKey');
return;
}
setLoadingLatestRelease(true);
@@ -94,6 +95,31 @@ export const DebugActions = () => {
{!loadingLatestRelease ? 'Check latest release' : null}
+ {
+ const userEd25519SecretKey = (await UserUtils.getUserED25519KeyPairBytes())
+ ?.privKeyBytes;
+ if (!userEd25519SecretKey) {
+ window.log.error('[debugMenu] debugAlphaRelease no userEd25519SecretKey');
+ return;
+ }
+ setLoadingAlphaRelease(true);
+ const versionNumber = await getLatestReleaseFromFileServer(
+ userEd25519SecretKey,
+ 'alpha'
+ );
+ setLoadingAlphaRelease(false);
+
+ if (versionNumber) {
+ ToastUtils.pushToastInfo('debugAlphaRelease', `v${versionNumber}`);
+ } else {
+ ToastUtils.pushToastError('debugAlphaRelease', 'Failed to fetch latest release');
+ }
+ }}
+ >
+
+ {!loadingAlphaRelease ? 'Check alpha release' : null}
+
>
);