Skip to content

Commit

Permalink
fix: flight number lookup (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanohly authored Feb 3, 2025
1 parent bdea3d6 commit 1011d68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/components/modals/add-flight/FlightNumber.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@
}
if (
($formData.from !== '' || $formData.to !== '') &&
($formData.from.code !== '' || $formData.to.code !== '') &&
!confirm(
'Are you sure you want to overwrite the current flight information?',
)
) {
return;
}
$formData.from = origin.ICAO;
$formData.to = destination.ICAO;
$formData.from = origin;
$formData.to = destination;
$formData.airline = airline.icao;
toast.success('Flight found');
};
Expand Down

0 comments on commit 1011d68

Please sign in to comment.