Trying to make a calculator that does multiple operations in JS, but the ‘operator’ gets stuck if I do not press ‘=’

Sorry for the long winded title. Basically I am writing a calculator in JS and have got onto a point where I want it to do multiple operations in a row; I believe the problem lies in the storeVariable(); when I try to do a third calculation (e.g. 2 x 3 – 2) the calculator gets stuck on the multiplication operator and so does 2 x 3 x 2. Any help with this would be appreciated.

(tried pasting my code but couldn’t figure it out so the github link is here https://github.com/KingClouderton6/calculator)