Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Make ts-strict happier
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne committed Jun 19, 2023
1 parent 9f8a986 commit e5a1e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/settings/shared/SettingsBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function SettingsBanner({ children, icon, action, onAction }: PropsWithCh
{icon}
<div className="mx_SettingsBanner_content">{children}</div>
{action && (
<AccessibleButton kind="primary_outline" onClick={onAction}>
<AccessibleButton kind="primary_outline" onClick={onAction ?? null}>
{action}
</AccessibleButton>
)}
Expand Down

0 comments on commit e5a1e82

Please sign in to comment.