Fatal error: Uncaught Error: Call to a member function getData() on array in /home/pinkcara/public_html/app/code/Sis/Custom/Model/Observer/CurrencySwitch.php:40 Stack trace: #0 /home/pinkcara/public_html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): Sis\Custom\Model\Observer\CurrencySwitch->execute(Object(Magento\Framework\Event\Observer)) #1 /home/pinkcara/public_html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(60): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object(Sis\Custom\Model\Observer\CurrencySwitch), Object(Magento\Framework\Event\Observer)) #2 /home/pinkcara/public_html/vendor/magento/framework/Event/Manager.php(66): Magento\Framework\Event\Invoker\InvokerDefault->dispatch(Array, Object(Magento\Framework\Event\Observer)) #3 /home/pinkcara/public_html/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): Magento\Framework\Event\Manager->dispatch('controller_acti...', Array) #4 /home/pinkcara/public_html/vendor/magento/framework/App/Action/Action.php(1 in /home/pinkcara/public_html/app/code/Sis/Custom/Model/Observer/CurrencySwitch.php on line 40