File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
src/editor/evaluation-viewer Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ import {
1717import {
1818 compilationErrorAssistance ,
1919 renderSimpleMarkdown ,
20- vmErrorAssistanceBCH ,
2120} from '../script-editor/error-assistance' ;
2221
2322import * 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 >
You can’t perform that action at this time.
0 commit comments