DEV: no need for conditional redirect in invites

This commit is contained in:
Arpit Jalan 2019-01-08 11:34:26 +05:30
parent 9919f16041
commit 4ebf170fe4
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ export default Ember.Controller.extend(
result.message || I18n.t("invites.success")
);
if (result.redirect_to) {
DiscourseURL.redirectTo(result.redirect_to || "/");
DiscourseURL.redirectTo(result.redirect_to);
}
} else {
if (