You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
toast.update(toastId,{render: `Successfully forwarded ${res} highlights to Readwise`,type: "success",isLoading: false})
37
+
toast.update(toastId,{render: `Successfully forwarded ${res} highlights to Readwise`,type: "success",isLoading: false,autoClose: 2000})
28
38
}else{
29
-
toast.update(toastId,{render: `There was a problem sending your highlights: ${res.message}`,type: "error",isLoading: false})
39
+
toast.update(toastId,{render: `There was a problem sending your highlights: ${res.message}`,type: "error",isLoading: false,autoClose: 3000})
40
+
}
41
+
})
42
+
.catch(err=>{
43
+
if(err.includes("401")){
44
+
toast.update(toastId,{render: `Received 401 Unauthorised from Readwise. Is your access token correct?`,type: "error",isLoading: false,autoClose: 3000})
45
+
}else{
46
+
toast.update(toastId,{render: `There was a problem sending your highlights: ${err}`,type: "error",isLoading: false,autoClose: 3000})
0 commit comments