Skip to content

Commit

Permalink
fix(ui): show translated string on sonarr sucesss/failure toast messa…
Browse files Browse the repository at this point in the history
…ges (#1035)
  • Loading branch information
danshilm committed Feb 28, 2021
1 parent 3fed26c commit eefcbcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Settings/SonarrModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,15 @@ const SonarrModal: React.FC<SonarrModalProps> = ({
setIsValidated(true);
setTestResponse(response.data);
if (initialLoad.current) {
addToast('Sonarr connection established!', {
addToast(intl.formatMessage(messages.toastSonarrTestSuccess), {
appearance: 'success',
autoDismiss: true,
});
}
} catch (e) {
setIsValidated(false);
if (initialLoad.current) {
addToast('Failed to connect to Sonarr server', {
addToast(intl.formatMessage(messages.toastSonarrTestFailure), {
appearance: 'error',
autoDismiss: true,
});
Expand Down

0 comments on commit eefcbcd

Please sign in to comment.