Skip to content

Commit 75b181f

Browse files
authored
Use constant for kitchen preset quantity (#34)
1 parent 4b6a2b8 commit 75b181f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontend/src/app/stores/configurator-store.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ export interface ConfiguratorState {
1717
applyKitchenPreset: () => void;
1818
}
1919

20+
// Preset quantity used when applying the default kitchen configuration.
21+
const KITCHEN_PRESET_QUANTITY = 4;
22+
2023
export const useConfiguratorStore = create<ConfiguratorState>((set, get) => ({
2124
materials: [],
2225
modules: [],
@@ -70,7 +73,7 @@ export const useConfiguratorStore = create<ConfiguratorState>((set, get) => ({
7073

7174
set({
7275
selectedModuleId: preferredModule.id,
73-
quantity: 4,
76+
quantity: KITCHEN_PRESET_QUANTITY,
7477
quote: null,
7578
});
7679
},

0 commit comments

Comments
 (0)