was not looking at the current component type and was relying on the tok...

...en being correct