We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39ecdfb commit d906322Copy full SHA for d906322
server/plugins/com.msgbyte.iam/web/plugins/com.msgbyte.iam/src/IAMAction.tsx
@@ -26,7 +26,7 @@ export const IAMAction: React.FC = React.memo(() => {
26
27
const payload = event.data;
28
29
- if (payload.type === 'exist') {
+ if (payload.type === 'existed') {
30
showToasts(Translate.accountExistedTip, 'warning');
31
} else if (payload.type === 'token') {
32
const token = payload.token;
@@ -35,9 +35,12 @@ export const IAMAction: React.FC = React.memo(() => {
35
.then(() => {
36
navigate('/main');
37
})
38
- .catch(() => {
+ .catch((err) => {
39
+ console.error(err);
40
showToasts(Translate.loginFailed, 'error');
41
});
42
+ } else {
43
+ console.warn('Unknown payload type', payload.type);
44
}
45
46
};
0 commit comments