Skip to content

Commit

Permalink
fix(options): fix crash of add-subscription dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
iorate committed Jun 17, 2024
1 parent e7d95f8 commit d2b28a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/scripts/options/subscription-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,12 @@ const AddSubscriptionDialog: React.FC<
id="subscriptionName"
required={true}
value={state.name}
onChange={(e) =>
onChange={(e) => {
const name = e.currentTarget.value;
setState((s) => {
const name = e.currentTarget.value;
return { ...s, name };
})
}
});
}}
/>
</RowItem>
</Row>
Expand Down

0 comments on commit d2b28a0

Please sign in to comment.