Skip to content

Commit fc59a51

Browse files
authored
Merge pull request #108 from Open-STEM/kq-bugs
Addressed issue #107
2 parents 30f7370 + 8fa6354 commit fc59a51

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/components/navbar.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,16 @@ function NavBar({ layoutref }: NavBarProps) {
535535
* ConvertToPython - convert the current blockly file to Python
536536
*/
537537
function ConvertToPython() {
538+
if (!isConnected) {
539+
setDialogContent(
540+
<AlertDialog
541+
alertMessage={t('XRP-not-connected')}
542+
toggleDialog={toggleDialog}
543+
/>,
544+
);
545+
toggleDialog();
546+
return;
547+
}
538548
setDialogContent(
539549
<ConfirmationDlg
540550
acceptCallback={BlocksToPythonCallback}

0 commit comments

Comments
 (0)