Skip to content

Commit

Permalink
feat: improve
Browse files Browse the repository at this point in the history
  • Loading branch information
shahargl committed Nov 30, 2023
1 parent ba1349e commit a490de1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion keep-ui/app/settings/smtp-settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ export default function SMTPSettingsForm({ accessToken }: Props) {
);

// Show loading state or error messages if needed
if (!smtpSettings || isLoading) return <Loading />;
if (smtpSettings === undefined || isLoading) {
return <Loading />;
}

// if no errors and we have data, set the settings
if(smtpSettings){
Expand Down

0 comments on commit a490de1

Please sign in to comment.