Commit ec8d5a7
committed
fix(app): ensure environment is set in initial AppState
The AppBloc was receiving the AppEnvironment in its constructor but was not setting it in the initial AppState. This resulted in `state.environment` being null throughout the app, causing conditional UI elements (like demo mode hints) to fail to appear.
This change passes the environment to the AppState constructor during bloc initialization and removes the now-unused `_environment` field from the AppBloc.1 parent af2aa48 commit ec8d5a7
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | | - | |
| 25 | + | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | | - | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
| |||
0 commit comments