Skip to content

Commit

Permalink
apply suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JKobrynski committed Jan 18, 2024
1 parent 278d867 commit fd5b47d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/UpdateAppModal/index.desktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import type UpdateAppModalProps from './types';

function UpdateAppModal({onSubmit}: UpdateAppModalProps) {
const updateApp = () => {
if (onSubmit) {
onSubmit();
}
onSubmit?.();
window.electron.send(ELECTRON_EVENTS.START_UPDATE);
};
return <BaseUpdateAppModal onSubmit={updateApp} />;
Expand Down
1 change: 1 addition & 0 deletions src/components/UpdateAppModal/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
type UpdateAppModalProps = {
/** Callback to fire when we want to trigger the update. */
onSubmit?: () => void;
};

Expand Down

0 comments on commit fd5b47d

Please sign in to comment.