GoodModal: fix wrong promise state

This commit is contained in:
Enrico Ros
2025-05-19 11:22:39 -07:00
parent bdfd8fb526
commit 8d9c8f681e
+2 -2
View File
@@ -132,8 +132,8 @@ export function OptimaBar(props: { component: React.ElementType, currentApp?: Na
}, [releaseNotesUrl, showPromisedOverlay]);
const handleShowTechnologies = React.useCallback(async () => {
return await showPromisedOverlay<void>('app-recent-changes', {}, ({ onResolve }) =>
<GoodModal open onClose={onResolve} noTitleBar unfilterBackdrop>
return await showPromisedOverlay<boolean>('app-recent-changes', { rejectWithValue: false }, ({ onUserReject }) =>
<GoodModal open onClose={onUserReject} noTitleBar unfilterBackdrop>
<BuildInfoCard noMargin />
</GoodModal>,
);