Fixs order details only when a wallet is connected

This commit is contained in:
apane
2019-11-01 16:00:07 -03:00
committed by David Sun
parent d4e04dc712
commit 001c7bfdbc

View File

@@ -31,7 +31,7 @@ export class OrderDetails extends React.PureComponent<OrderDetailsProps> {
public render(): React.ReactNode {
const shouldShowUsdError = this.props.baseCurrency === BaseCurrency.USD && this._hadErrorFetchingUsdPrice();
const { state } = this.props.account;
if (state === AccountState.None) {
if (state !== AccountState.Ready) {
return null;
} else {
return (