diff --git a/fbw-a380x/src/systems/instruments/src/FCU/Components/NdData.tsx b/fbw-a380x/src/systems/instruments/src/FCU/Components/NdData.tsx index fe072e8d95f..4431a73502a 100644 --- a/fbw-a380x/src/systems/instruments/src/FCU/Components/NdData.tsx +++ b/fbw-a380x/src/systems/instruments/src/FCU/Components/NdData.tsx @@ -3,7 +3,6 @@ import { NavAidMode } from '@flybywiresim/fbw-sdk'; import { - Subject, ConsumerSubject, DisplayComponent, EventBus, @@ -42,14 +41,7 @@ export class NdData extends DisplayComponent { NavAidMode.Off, ); - private lightsTest = Subject.create(false); - - onAfterRender(_node: VNode): void { - this.sub - .on('ovhd_ann_lt_test_active') - .whenChanged() - .handle((v) => this.lightsTest.set(v)); - } + private readonly isLightTestActive = ConsumerSubject.create(this.sub.on('ovhd_ann_lt_test_active'), false); render(): VNode | null { return ( @@ -63,62 +55,62 @@ export class NdData extends DisplayComponent { {/* LIGHT TESTS */} @@ -127,62 +119,62 @@ export class NdData extends DisplayComponent { NdData.NAVAID_1_IMAGES[v])} /> NdData.NAVAID_2_IMAGES[v])} /> {/* LIGHT TESTS */}