There is a minor issue that I've been struggling to understand... so
In my code, I have an inline if statement like this:
<button *ngIf="item?.fields?.assetType !== 'tool' || item?.fields?.assetType !== 'questions'">NEXT</button>
The functionality here is quite simple. If the data returned contains an assetType
of either 'tool' or 'questions', the button should not be displayed. While this logic works when the data has an assetType
of 'tool' (the button is hidden), it fails to hide the button when the assetType
is 'questions'.
Below is the relevant data being returned, where assetType
is indeed 'questions,' which should trigger the hiding of the button, but strangely it doesn't:
https://i.sstatic.net/IetSr.png
I believe the problem lies in a small detail that I can't seem to pinpoint. Any assistance in resolving this issue would be greatly appreciated!