Skip to content

Commit 8fa6354

Browse files
committed
Addressed issue #107
1 parent 30f7370 commit 8fa6354

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

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)