Skip to content

Commit 4df1870

Browse files
authored
Merge pull request #65 from delta/registration-unsuccessful
Fixed registration unsuccessfull toast bug
2 parents f7c3b36 + 795b789 commit 4df1870

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/sagas/User.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,9 @@ export function* register(action: ActionType<typeof UserActions.register>) {
132132
yield put(
133133
NotificationActions.info('Account activation link has been sent to registered Email ID.'),
134134
);
135+
} else {
136+
yield put(NotificationActions.error('Registration unsuccessful!'));
135137
}
136-
yield put(NotificationActions.error('Registration unsuccessful!'));
137138
} catch (err) {
138139
console.error(err);
139140
}

0 commit comments

Comments
 (0)