diff --git a/frontend/src/ui/pages/BotTimers.tsx b/frontend/src/ui/pages/BotTimers.tsx index a872c4b..12ae719 100644 --- a/frontend/src/ui/pages/BotTimers.tsx +++ b/frontend/src/ui/pages/BotTimers.tsx @@ -277,7 +277,7 @@ function TimerDialog({ { @@ -153,7 +153,7 @@ export default function LoyaltySettingsPage(): React.ReactElement { type="number" id="bonus" placeholder={'0'} - value={config?.points?.activity_bonus ?? '0'} + defaultValue={config?.points?.activity_bonus} disabled={!active || busy} required={true} onChange={(e) => { diff --git a/frontend/src/ui/pages/LoyaltyRewards.tsx b/frontend/src/ui/pages/LoyaltyRewards.tsx index 3cc1e00..108bb7f 100644 --- a/frontend/src/ui/pages/LoyaltyRewards.tsx +++ b/frontend/src/ui/pages/LoyaltyRewards.tsx @@ -454,7 +454,7 @@ function RewardsPage() { id="reward-cost" type="number" required - value={dialogReward?.reward?.price ?? '0'} + defaultValue={dialogReward?.reward?.price} onChange={(e) => { setDialogReward({ ...dialogReward, @@ -780,7 +780,7 @@ function GoalsPage() { id="goal-cost" type="number" required - value={dialogGoal?.goal?.total ?? '0'} + defaultValue={dialogGoal?.goal?.total} onChange={(e) => { setDialogGoal({ ...dialogGoal, diff --git a/frontend/src/ui/pages/TwitchSettings.tsx b/frontend/src/ui/pages/TwitchSettings.tsx index 297678f..332597e 100644 --- a/frontend/src/ui/pages/TwitchSettings.tsx +++ b/frontend/src/ui/pages/TwitchSettings.tsx @@ -181,7 +181,7 @@ function TwitchBotSettings() { id="bot-chat-history" required={active} disabled={disabled} - value={botConfig?.chat_history ?? ''} + defaultValue={botConfig?.chat_history} onChange={(ev) => dispatch( apiReducer.actions.twitchBotConfigChanged({