Hi, I have a Modal that I’d like to show when a variable is empty.
I also need it to open when triggered manually so I have a variable set for that.
The behaviour I’m seeing is that in my app, if I log in, then exit and come back later, I’m still authenticated but the data needs to be fetched again. The app won’t know what data needs to be fetched unless the user selects it, because they can have multiple versions of the data in their account. This happens in a modal.
So I need the modal to show when that data is blank, and also when the data is there but the modal is manually triggered to open (this would happen when the user wants to switch their data to another version)
This is what I’m currently doing but without success.Any help would be greatly appreciated.