diff --git a/src/renderer/components/pages/Config/pages/GpioPinsConfig/GpioPinsConfig.tsx b/src/renderer/components/pages/Config/pages/GpioPinsConfig/GpioPinsConfig.tsx index dbf9ec8..9a3393b 100644 --- a/src/renderer/components/pages/Config/pages/GpioPinsConfig/GpioPinsConfig.tsx +++ b/src/renderer/components/pages/Config/pages/GpioPinsConfig/GpioPinsConfig.tsx @@ -18,9 +18,13 @@ export const GpioPinsConfig = () => { <> GPIO Control - {gpioPins.map((gpioPin) => ( - gpioPin.bpm ? : - ))} + {gpioPins.map((gpioPin) => + gpioPin.bpm ? ( + + ) : ( + + ) + )} ); diff --git a/src/renderer/store/modules/gpioPins.ts b/src/renderer/store/modules/gpioPins.ts index dbcdf88..0b7c589 100644 --- a/src/renderer/store/modules/gpioPins.ts +++ b/src/renderer/store/modules/gpioPins.ts @@ -73,7 +73,10 @@ export const gpioPinsSlice = createSlice({ removePin: (state, { payload }: PayloadAction) => { state = state.filter((pin) => pin.id !== payload.id); }, - updateBPM: (state, { payload }: PayloadAction<{ id: string; bpm: number }>) => { + updateBPM: ( + state, + { payload }: PayloadAction<{ id: string; bpm: number }> + ) => { const element = state.find((element) => element.id === payload.id); if (element) { element.bpm = payload.bpm;