Skip to content

Commit

Permalink
Update emailService.ts
Browse files Browse the repository at this point in the history
no server side errors visible
  • Loading branch information
niccolopaganini authored Nov 5, 2023
1 parent 841d3ef commit 631c1ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/js/control/emailService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import i18next from "i18next";
import { logInfo, logDebug, displayError } from "../plugin/logger";
import 'cordova-plugin-email-composer';

// Separated functions here
function getEmailConfig() {
return new Promise(async (resolve, reject) => {
try {
Expand Down Expand Up @@ -86,7 +87,7 @@ function EmailHelper() {
displayError(err, "Error while reading email config");
});
}, []);

// My export component here
return (
<div>
<button onClick={() => sendEmail('exampleDatabase', emailConfig)}>
Expand Down

0 comments on commit 631c1ce

Please sign in to comment.