diff --git a/libs/remix-ui/run-tab/src/lib/components/environment.tsx b/libs/remix-ui/run-tab/src/lib/components/environment.tsx index 3f7db96d7bf..d74b8f3c892 100644 --- a/libs/remix-ui/run-tab/src/lib/components/environment.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/environment.tsx @@ -66,7 +66,7 @@ export function EnvironmentUI(props: EnvironmentProps) { await props.runTabPlugin.call('fileManager', 'writeFile', `.states/saved_states/${vmStateName.current}.json`, JSON.stringify(currentStateDb, null, 2)) props.runTabPlugin.emit('vmStateSaved', vmStateName.current) props.runTabPlugin.call('notification', 'toast', `VM state ${vmStateName.current} saved.`) - } + } else props.runTabPlugin.call('notification', 'toast', `VM state doesn't exist for selected environment.`) }, intl.formatMessage({ id: 'udapp.cancel' }), null