api.user.setUserMetadata not working with postLogin action

Have you tried setting a console.log there to confirm that the conditional is being triggered?

You can also try using a static value to rule out any issues with the results object.