Skip to content

Commit 4dc1086

Browse files
committed
Update PDCModal.tsx
1 parent 06828fe commit 4dc1086

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/tools/PDCModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const PDCModal: React.FC<PDCModalProps> = ({ isOpen, onClose, flight, onIssuePDC
137137

138138
const [autoIdentifier] = useState(() => {
139139
// Generate identifier from squawk and callsign
140-
const squawk = flight?.squawk || autoSquawk;
140+
const squawk = flight?.squawk || getSquawk();
141141
const firstThreeNumbers = squawk.substring(0, 3);
142142

143143
let firstLetter = 'A';

0 commit comments

Comments
 (0)