diff options
Diffstat (limited to 'client/src/app/shared/shared-user-subscription')
-rw-r--r-- | client/src/app/shared/shared-user-subscription/remote-subscribe.component.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-user-subscription/remote-subscribe.component.ts b/client/src/app/shared/shared-user-subscription/remote-subscribe.component.ts index 61bcd5345..295b0812a 100644 --- a/client/src/app/shared/shared-user-subscription/remote-subscribe.component.ts +++ b/client/src/app/shared/shared-user-subscription/remote-subscribe.component.ts | |||
@@ -35,7 +35,9 @@ export class RemoteSubscribeComponent extends FormReactive implements OnInit { | |||
35 | } | 35 | } |
36 | 36 | ||
37 | formValidated () { | 37 | formValidated () { |
38 | const address = this.form.value['text'] | 38 | let address = this.form.value['text'] || '' |
39 | address = address.replace(/^@/, '') | ||
40 | |||
39 | const [ username, hostname ] = address.split('@') | 41 | const [ username, hostname ] = address.split('@') |
40 | 42 | ||
41 | const protocol = window.location.protocol | 43 | const protocol = window.location.protocol |