Skip to content

Commit 091d7df

Browse files
author
Marcin Mazurek
committed
Cleanup
1 parent 0ead47a commit 091d7df

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

source/renderer/app/stores/VotingStore.ts

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -423,26 +423,21 @@ export default class VotingStore extends Store {
423423
const { network, isMainnet } = this.environment;
424424
const intl = i18nContext(currentLocale);
425425

426-
try {
427-
const wasSaved = await votingPDFGenerator({
428-
nextVotingFundNumber,
429-
qrCode,
430-
walletName,
431-
currentLocale,
432-
currentDateFormat,
433-
currentTimeFormat,
434-
desktopDirectoryPath,
435-
network,
436-
isMainnet,
437-
intl,
438-
});
439-
// @ts-ignore ts-migrate(2554) FIXME: Expected 1 arguments, but got 0.
426+
const wasSaved = await votingPDFGenerator({
427+
nextVotingFundNumber,
428+
qrCode,
429+
walletName,
430+
currentLocale,
431+
currentDateFormat,
432+
currentTimeFormat,
433+
desktopDirectoryPath,
434+
network,
435+
isMainnet,
436+
intl,
437+
});
440438

441-
if (wasSaved) {
442-
this.actions.voting.saveAsPDFSuccess.trigger();
443-
}
444-
} catch (error) {
445-
throw new Error(error);
439+
if (wasSaved) {
440+
this.actions.voting.saveAsPDFSuccess.trigger();
446441
}
447442
};
448443
_checkVotingRegistrationTransaction = async () => {

0 commit comments

Comments
 (0)