Skip to content

Commit

Permalink
Fix undefined object
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Mar 19, 2021
1 parent fc80d32 commit 6884d42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/account/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import SteamTotp from 'steam-totp';
import Logger from './logger';
import TradeProcessor from '../trading/processor';
import { ICurrency, getCurrency } from '../steam/currency';
import {Offer} from '../trading/types'

export interface AccountOptions {
readonly login: {
Expand Down Expand Up @@ -76,7 +77,7 @@ export default class Account {
client.on('wallet', (_hasWallet: boolean, currency: number) => {
this.options.status.currency = getCurrency(currency);
});
manager.on('newOffer', this.trader.begin);
manager.on('newOffer', (offer: Offer) => this.trader.begin(offer));
}

private getAuthCode(): string {
Expand Down

0 comments on commit 6884d42

Please sign in to comment.