Conditional link to a screen after login

Hi!
I really need your help because it’s driving me crazy.
Besides the standard login action, I’ve added 2 more actions after that, on the login button of our app, that are conditional (happens sometimes).
The conditions are as follows:

  • Action 1: After pressing the login button, If logged in user’s Company (that’s a field in our Users Database) is equal to X, then show/go to screen X.
  • Action 2: After pressing the login button, If logged in user’s Company is not equal to X, then show/go to screen Z.
    Thing is when I’m testing this, sometimes the first action happens successfully and sometimes it doesn’t. I can’t find a pattern as to when or why it’s working so randomly.
    Do you have any idea how can this be done/fixed?

Hi!

I used a system with a blanck screen (or with loading) in this screen you can add action. And here add your conditionnal actions. It works better than 2 actions in one button.

I use this for my premium users, they dont have the same screen than classic user