Skip to content

Commit 833002d

Browse files
committed
Disable outdated vmErrorAssistanceBCH
1 parent b313505 commit 833002d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/editor/evaluation-viewer/EvaluationViewer.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import {
1717
import {
1818
compilationErrorAssistance,
1919
renderSimpleMarkdown,
20-
vmErrorAssistanceBCH,
2120
} from '../script-editor/error-assistance';
2221

2322
import * as libauth from '@bitauth/libauth';
@@ -146,10 +145,9 @@ const getStackItemDisplaySettings = (
146145
return { hex, type: 'hex' as const, label: hex };
147146
};
148147

149-
const hasVmHelp = (
150-
error?: string,
151-
): error is keyof typeof vmErrorAssistanceBCH =>
152-
error !== undefined && vmErrorAssistanceBCH[error] !== undefined;
148+
// TODO: modernize
149+
const hasVmHelp = (_error?: string) => false;
150+
// error !== undefined && vmErrorAssistanceBCH[error] !== undefined;
153151

154152
/**
155153
* Renders some common virtual machine errors with friendly help information.
@@ -158,7 +156,7 @@ const VmErrorLine = ({ state }: { state: IDESupportedProgramState }) =>
158156
hasVmHelp(state.error) ? (
159157
<span className="stack-item error error-with-help">
160158
<Popover
161-
content={vmErrorAssistanceBCH[state.error]?.(state)}
159+
// content={vmErrorAssistanceBCH[state.error]?.(state)}
162160
portalClassName="help-popover"
163161
interactionKind="hover"
164162
>

0 commit comments

Comments
 (0)