Skip to content

Commit f0f8472

Browse files
committed
Fixed Breaking issue for checking login method
1 parent 8104ed5 commit f0f8472

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

api/deployment.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ func CheckLoginMethod() error {
147147
if err != nil {
148148
return err
149149
}
150-
if res.Productplan.Name != "business" {
151-
return errors.New("This command applies to Phone login and Passwordless login which are available only with the Developer Pro plan. Kindly upgrade your plan to use this feature.")
150+
if res.Productplan != nil && res.Productplan.Name != "business" {
151+
return errors.New("this command applies to Phone login and Passwordless login which are available only with the Developer Pro plan. Kindly upgrade your plan to use this feature")
152152
}
153153
return nil
154154
}

0 commit comments

Comments
 (0)