Fix logic error. Should be if transaction state not purchased or restored.
Fix logic error. Should be if transaction state not purchased or restored.

songsinh88/CargoBay,LiuDeng/CargoBay,dxd214/CargoBay,vvw/CargoBay,mattt/CargoBay,ycaihua/CargoBay,hanhailong/CargoBay