Skip to content

Commit 1714ca5

Browse files
committed
Minor refactoring
1 parent 9f0e0ee commit 1714ca5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

site/src/xServices/appearance/appearanceXService.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,14 @@ export const appearanceMachine = createMachine(
8484
actions: {
8585
assignPreviewAppearance: assign({
8686
appearance: (_, event) => event.appearance,
87-
// The xState docs suggest that we can use a static value, but I failed
88-
// to find a way to do that that doesn't generate type errors.
89-
preview: (_, __) => true,
87+
preview: (_) => true,
9088
}),
9189
notifyUpdateAppearanceSuccess: () => {
9290
displaySuccess("Successfully updated appearance settings!")
9391
},
9492
assignAppearance: assign({
9593
appearance: (_, event) => event.data as AppearanceConfig,
96-
preview: (_, __) => false,
94+
preview: (_) => false,
9795
}),
9896
assignGetAppearanceError: assign({
9997
getAppearanceError: (_, event) => event.data,

0 commit comments

Comments
 (0)