Skip to content

Commit

Permalink
Save circuit alert - bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mishteegandhi committed Feb 21, 2024
1 parent e1d9e24 commit cba9b90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ArduinoFrontend/src/app/simulator/simulator.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export let stopdrag = { value: false };
encapsulation: ViewEncapsulation.None
})
export class SimulatorComponent implements OnInit, OnDestroy {
/**
/**
* Currently loaded circuits temp version
*/
static tempversion: string;
Expand Down Expand Up @@ -831,7 +831,7 @@ export class SimulatorComponent implements OnInit, OnDestroy {
HandleRouter(callback) {
if (SimulatorComponent.tempversion.length === 20) {
callback();
} else if(Login.getToken()) {
} else if (Login.getToken()) {
AlertService.showOptions(
'Save changes to the untitled circuit on cloud? Your changes will be lost if you do not save it.',
() => {
Expand Down

0 comments on commit cba9b90

Please sign in to comment.